Module: sip-router
Branch: master
Commit: 459f86fe167f784db491d3155a302ee758fef708
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=459f86fe167f784db491d3155a302ee758fef708

Author: Carsten Bock <[email protected]>
Committer: Carsten Bock <[email protected]>
Date:   Sat Jun  7 01:26:05 2014 +0200

ims_usrloc_pcscf: Bugfix: Fix priorities in if statement

---

 modules/ims_usrloc_pcscf/udomain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/ims_usrloc_pcscf/udomain.c 
b/modules/ims_usrloc_pcscf/udomain.c
index 5a154e6..ac50290 100644
--- a/modules/ims_usrloc_pcscf/udomain.c
+++ b/modules/ims_usrloc_pcscf/udomain.c
@@ -481,7 +481,7 @@ int get_pcontact(udomain_t* _d, str* _contact, struct 
pcontact** _c) {
                LM_DBG("Searching for [%.*s] and comparing to [%.*s]\n", 
_contact->len, _contact->s, c->aor.len, c->aor.s);
 
                /* hosts HAVE to match */
-               if (lookup_check_received && (needle_uri.host.len != 
c->received_host.len) || (memcmp(needle_uri.host.s, c->contact_host.s, 
needle_uri.host.len)!=0)) {
+               if (lookup_check_received && ((needle_uri.host.len != 
c->received_host.len) || (memcmp(needle_uri.host.s, c->contact_host.s, 
needle_uri.host.len)!=0))) {
                        //can't possibly match
                        c = c->next;
                        continue;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to