aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-08 16:06:17 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-08 16:06:17 +0000
commit6efcd64c08697811bd675535141d5f9531bfe974 (patch)
tree4cd39d91d9a86c39f21157fd48713dff5b1c1ac6
parent3cb1e27f5d1c26e931b9311a1ec5b407c51e3885 (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
-rw-r--r--apps/app_authenticate.c2
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))