From b16320635869f582be918138c00ca29415447790 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 26 Mar 2010 17:38:00 +0000 Subject: [PATCH] fix typo in sofia that causes endless loop when you have a challenge with 2 auth headers in it git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17114 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/iptsec/auth_client.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 6ce6987cec..f392518516 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Wed Jan 13 09:48:12 CST 2010 +Fri Mar 26 12:20:14 CDT 2010 diff --git a/libs/sofia-sip/libsofia-sip-ua/iptsec/auth_client.c b/libs/sofia-sip/libsofia-sip-ua/iptsec/auth_client.c index 17e71d6031..8a1c0f07ae 100644 --- a/libs/sofia-sip/libsofia-sip-ua/iptsec/auth_client.c +++ b/libs/sofia-sip/libsofia-sip-ua/iptsec/auth_client.c @@ -565,9 +565,11 @@ int auc_has_authorization(auth_client_t **auc_list) * 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))