Modified:
/trunk/sipXtackLib/src/net/SipUserAgent.cpp
=======================================
--- /trunk/sipXtackLib/src/net/SipUserAgent.cpp Wed Feb 24 14:21:43 2010
+++ /trunk/sipXtackLib/src/net/SipUserAgent.cpp Mon Nov 29 14:16:33 2010
@@ -4007,9 +4007,10 @@
// According to RFC2617: "The server should only set stale to TRUE
// if it receives a request for which the nonce is invalid but with a
// valid digest for that nonce" - so there shouldn't be infinite
auth loop
- if (stale.compareTo("TRUE", UtlString::ignoreCase) == 0)
+ if (stale.compareTo("TRUE", UtlString::ignoreCase) != 0)
{
// Check to see if we already tried to send the credentials
+ // if stale=true is present, we always act as if we never tried
to authenticate
alreadyTriedOnce = request.hasDigestAuthorizationData(realm,
authorizationEntity);
}