[asterisk-commits] trunk r19393 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Apr 11 15:07:53 MST 2006


Author: kpfleming
Date: Tue Apr 11 17:07:52 2006
New Revision: 19393

URL: http://svn.digium.com/view/asterisk?rev=19393&view=rev
Log:
fix logic error; don't test for rtcache flag unless asked to (issue #6923)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=19393&r1=19392&r2=19393&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Apr 11 17:07:52 2006
@@ -8502,7 +8502,7 @@
 	ASTOBJ_CONTAINER_TRAVERSE(&peerl, !result, do {
 		/* locking of the object is not required because only the name and flags are being compared */
 		if (!strncasecmp(word, iterator->name, wordlen) &&
-				ast_test_flag(&iterator->flags[1], flags2) &&
+				(!flags2 || ast_test_flag(&iterator->flags[1], flags2)) &&
 				++which > state)
 			result = ast_strdup(iterator->name);
 	} while(0) );



More information about the asterisk-commits mailing list