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

Author: Carsten Bock <[email protected]>
Committer: Carsten Bock <[email protected]>
Date:   Sat Jun  7 00:47:22 2014 +0200

Bugfix: Fix previous commit

---

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

diff --git a/modules/ims_usrloc_pcscf/udomain.c 
b/modules/ims_usrloc_pcscf/udomain.c
index e19b0f4..5a154e6 100644
--- a/modules/ims_usrloc_pcscf/udomain.c
+++ b/modules/ims_usrloc_pcscf/udomain.c
@@ -472,7 +472,7 @@ int get_pcontact(udomain_t* _d, str* _contact, struct 
pcontact** _c) {
                                _contact->len,
                                _contact->s);
 
-               if (lookup_check_received && (c->aorhash == aorhash) && 
(c->aor.len == _contact->len)
+               if ((c->aorhash == aorhash) && (c->aor.len == _contact->len)
                                && !memcmp(c->aor.s, _contact->s, 
_contact->len)) {
                        *_c = c;
                        return 0;
@@ -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 ((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