[sr-dev] git:master: siputils: fix for is_gruu()

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 5 23:44:26 CEST 2012


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Jun  5 23:40:53 2012 +0200

siputils: fix for is_gruu()

- improper return code check resulted in wrong gruu detection when there
  was no uri parameter
- reported by Juha Heinanen, closes FS#235

---

 modules_k/siputils/sipops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/siputils/sipops.c b/modules_k/siputils/sipops.c
index c235aa6..3ee7566 100644
--- a/modules_k/siputils/sipops.c
+++ b/modules_k/siputils/sipops.c
@@ -102,7 +102,7 @@ int w_is_gruu(sip_msg_t *msg, char *uri1, char *p2)
 			return -1;
 		puri = &turi;
 	} else {
-		if(parse_sip_msg_uri(msg))
+		if(parse_sip_msg_uri(msg)<0)
 			return -1;
 		puri = &msg->parsed_uri;
 	}




More information about the sr-dev mailing list