aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/func_md5.c')
-rw-r--r--funcs/func_md5.c4
1 files changed, 4 insertions, 0 deletions
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);