[asterisk-commits] tilghman: trunk r42422 - in /trunk: ./ apps/app_authenticate.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Sep 8 09:08:36 MST 2006


Author: tilghman
Date: Fri Sep  8 11:08:36 2006
New Revision: 42422

URL: http://svn.digium.com/view/asterisk?rev=42422&view=rev
Log:
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)

........

Modified:
    trunk/   (props changed)
    trunk/apps/app_authenticate.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/apps/app_authenticate.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_authenticate.c?rev=42422&r1=42421&r2=42422&view=diff
==============================================================================
--- trunk/apps/app_authenticate.c (original)
+++ trunk/apps/app_authenticate.c Fri Sep  8 11:08:36 2006
@@ -218,7 +218,7 @@
 		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))



More information about the asterisk-commits mailing list