[sr-dev] git:master: ims_usrloc_pcscf: Bugfix: Fix priorities in if statement

Carsten Bock carsten at ng-voice.com
Sat Jun 7 01:26:15 CEST 2014


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 <carsten at ng-voice.com>
Committer: Carsten Bock <carsten at ng-voice.com>
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;




More information about the sr-dev mailing list