From b14bdc5a1211fa53add7d87b9444b56576d6d2d8 Mon Sep 17 00:00:00 2001 From: russell Date: Sat, 21 Jan 2006 17:50:04 +0000 Subject: revert my pass through the tree to remove checks of the result of ast_strdupa (revisions 8378 through 8381) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8387 f38db490-d61c-443f-a65b-d21fe96a405b --- funcs/func_md5.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'funcs/func_md5.c') diff --git a/funcs/func_md5.c b/funcs/func_md5.c index 57c39753f..552e876ed 100644 --- a/funcs/func_md5.c +++ b/funcs/func_md5.c @@ -68,6 +68,10 @@ static char *builtin_function_checkmd5(struct ast_channel *chan, char *cmd, char } parse = ast_strdupa(data); + if (!parse) { + ast_log(LOG_ERROR, "Out of memory!\n"); + return NULL; + } AST_STANDARD_APP_ARGS(args, parse); -- cgit v1.2.3