From ec7535bba2a2708cd4ff806d95f0ba6e8fe5e9fd Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Fri, 8 Sep 2006 16:06:17 +0000 Subject: [PATCH] Jump logic was backwards: goto returns 0 if it succeeds, and we should jump if authentication fails. (Bug #7907) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42421 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_authenticate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_authenticate.c b/apps/app_authenticate.c index 583c5f4d35..5c65894e5a 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)) -- 2.47.2