summaryrefslogtreecommitdiff
path: root/apps/app_md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_md5.c')
-rwxr-xr-xapps/app_md5.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/app_md5.c b/apps/app_md5.c
index 0e92c1c99..55e2a4540 100755
--- a/apps/app_md5.c
+++ b/apps/app_md5.c
@@ -118,10 +118,9 @@ static int md5check_exec(struct ast_channel *chan, void *data)
}
if (option_debug > 2)
ast_log(LOG_DEBUG, "ERROR: MD5 not verified: %s -- %s\n", hash, string);
- if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num))
- chan->priority += 100;
- else if (option_debug > 2)
- ast_log(LOG_DEBUG, "ERROR: Can't jump to exten+101 (e%s,p%d), sorry\n", chan->exten,chan->priority+101);
+ if (!ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101))
+ if (option_debug > 2)
+ ast_log(LOG_DEBUG, "ERROR: Can't jump to exten+101 (e%s,p%d), sorry\n", chan->exten,chan->priority+101);
LOCAL_USER_REMOVE(u);
return res;
}