summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2011-04-11 17:32:47 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-04-11 17:32:47 -0700
commit3ff4b4d623bfb41ec47eea0c87c9aa9bbb9843db (patch)
tree6801343a8962a5df732a0ef2b8857c7c4d0d894c
parentdb531d33d5fbac8e02d3b7b9568a64da393fe806 (diff)
parent7a8671bc57b163ae8950a1876a4707c33790904b (diff)
downloadnist-sip-3ff4b4d623bfb41ec47eea0c87c9aa9bbb9843db.tar.gz
* commit '7a8671bc57b163ae8950a1876a4707c33790904b': Fix the maddr issue for proxy authentication.
-rw-r--r--java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java b/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java
index aa29616..4dc39ef 100644
--- a/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java
+++ b/java/gov/nist/javax/sip/clientauthutils/AuthenticationHelperImpl.java
@@ -212,7 +212,8 @@ public class AuthenticationHelperImpl implements AuthenticationHelper {
Hop hop = ((SIPClientTransaction) challengedTransaction).getNextHop();
SipURI sipUri = (SipURI) reoriginatedRequest.getRequestURI();
// BEGIN android-added
- if ( !hop.getHost().equalsIgnoreCase(sipUri.getHost()) )
+ if ( !hop.getHost().equalsIgnoreCase(sipUri.getHost())
+ && !hop.equals(sipStack.getRouter(challengedRequest).getOutboundProxy()) )
// END android-added
sipUri.setMAddrParam(hop.getHost());
if ( hop.getPort() != -1 ) sipUri.setPort(hop.getPort());