[sr-dev] git:master:d57f7012: topoh: fixed unmask route issue, if maksing fails for one of the routes

Balajee balajee at Balajees-MacBook-Air.local
Mon Jan 7 11:58:24 CET 2019


Module: kamailio
Branch: master
Commit: d57f70127c44fd74c459aefc8d2655978b9cb48b
URL: https://github.com/kamailio/kamailio/commit/d57f70127c44fd74c459aefc8d2655978b9cb48b

Author: Balajee <balajee at Balajees-MacBook-Air.local>
Committer: Balajee <balajee at Balajees-MacBook-Air.local>
Date: 2018-12-23T23:27:49+05:30

topoh: fixed unmask route issue, if maksing fails for one of the routes

---

Modified: src/modules/topoh/th_msg.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d57f70127c44fd74c459aefc8d2655978b9cb48b.diff
Patch: https://github.com/kamailio/kamailio/commit/d57f70127c44fd74c459aefc8d2655978b9cb48b.patch

---

diff --git a/src/modules/topoh/th_msg.c b/src/modules/topoh/th_msg.c
index 2ba5688395..9cf87aa8c6 100644
--- a/src/modules/topoh/th_msg.c
+++ b/src/modules/topoh/th_msg.c
@@ -709,7 +709,10 @@ int th_unmask_route(sip_msg_t *msg)
 
 				if(th_get_uri_param_value(&rr->nameaddr.uri, &th_uparam_name,
 							&eval)<0 || eval.len<=0)
-					return -1;
+				{
+					rr = rr->next;
+					continue;
+				}
 
 				out.s = th_mask_decode(eval.s, eval.len,
 							&th_uparam_prefix, 0, &out.len);




More information about the sr-dev mailing list