Revision
17114
Author
anthm
Date
2010-03-26 12:38:00 -0500 (Fri, 26 Mar 2010)

Log Message

fix typo in sofia that causes endless loop when you have a challenge with 2 auth headers in it

Modified Paths

Diff

Modified: freeswitch/trunk/libs/sofia-sip/.update (17113 => 17114)


--- freeswitch/trunk/libs/sofia-sip/.update	2010-03-26 16:51:12 UTC (rev 17113)
+++ freeswitch/trunk/libs/sofia-sip/.update	2010-03-26 17:38:00 UTC (rev 17114)
@@ -1 +1 @@
-Wed Jan 13 09:48:12 CST 2010
+Fri Mar 26 12:20:14 CDT 2010

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/iptsec/auth_client.c (17113 => 17114)


--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/iptsec/auth_client.c	2010-03-26 16:51:12 UTC (rev 17113)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/iptsec/auth_client.c	2010-03-26 17:38:00 UTC (rev 17114)
@@ -565,9 +565,11 @@
        * Check if we have another challenge with same realm but different
        * scheme
        */
-      for (other = *auc_list; other; other = ca->ca_next) {
-	if (ca == other)
-	  continue;
+      for (other = *auc_list; other; other = other->ca_next) {
+		  if (ca == other) {
+			  continue;
+		  }
+
 	if (ca->ca_credential_class == other->ca_credential_class &&
 	    su_strcmp(ca->ca_realm, other->ca_realm) == 0 &&
 	    ca_has_authorization(other))