diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-08 16:08:36 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-08 16:08:36 +0000 |
commit | 3155a9acdc1813a1a50eb5d05737a3efb76cd31e (patch) | |
tree | e877e4eecd1374cc7dd03cdc343742a25c08fa82 | |
parent | 7a05894fc140f01c63972f9482a77597bb2af969 (diff) |
Merged revisions 42421 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r42421 | tilghman | 2006-09-08 11:06:17 -0500 (Fri, 08 Sep 2006) | 2 lines
Jump logic was backwards: goto returns 0 if it succeeds, and we should jump if authentication fails. (Bug #7907)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42422 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_authenticate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c index 03bc5ed81..5985993a8 100644 --- a/apps/app_authenticate.c +++ b/apps/app_authenticate.c @@ -218,7 +218,7 @@ static int auth_exec(struct ast_channel *chan, void *data) if (!res) res = ast_waitstream(chan, ""); } else { - if (ast_test_flag(&flags,OPT_JUMP) && ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) { + if (ast_test_flag(&flags,OPT_JUMP) && ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101) == 0) { res = 0; } else { if (!ast_streamfile(chan, "vm-goodbye", chan->language)) |