[asterisk-commits] tilghman: branch 1.2 r42421 - /branches/1.2/apps/app_authenticate.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 8 09:06:18 MST 2006


Author: tilghman
Date: Fri Sep  8 11:06:17 2006
New Revision: 42421

URL: http://svn.digium.com/view/asterisk?rev=42421&view=rev
Log:
Jump logic was backwards:  goto returns 0 if it succeeds, and we should jump if authentication fails.  (Bug #7907)

Modified:
    branches/1.2/apps/app_authenticate.c

Modified: branches/1.2/apps/app_authenticate.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_authenticate.c?rev=42421&r1=42420&r2=42421&view=diff
==============================================================================
--- branches/1.2/apps/app_authenticate.c (original)
+++ branches/1.2/apps/app_authenticate.c Fri Sep  8 11:06:17 2006
@@ -186,7 +186,7 @@
 		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))



More information about the asterisk-commits mailing list