diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-08 16:06:17 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-08 16:06:17 +0000 |
commit | 6efcd64c08697811bd675535141d5f9531bfe974 (patch) | |
tree | 4cd39d91d9a86c39f21157fd48713dff5b1c1ac6 /apps/app_authenticate.c | |
parent | 3cb1e27f5d1c26e931b9311a1ec5b407c51e3885 (diff) |
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/branches/1.2@42421 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_authenticate.c')
-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 583c5f4d3..5c65894e5 100644 --- a/apps/app_authenticate.c +++ b/apps/app_authenticate.c @@ -186,7 +186,7 @@ static int auth_exec(struct ast_channel *chan, void *data) if (!res) res = ast_waitstream(chan, ""); } else { - if (jump && ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) { + if (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)) |