[sr-dev] git:master:f5d4446d: topos: use _strnstr() from core instead of strnstr()

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 15 12:41:13 CET 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-03-15T12:40:47+01:00

topos: use _strnstr() from core instead of strnstr()

---

Modified: modules/topos/tps_msg.c

---

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

---

diff --git a/modules/topos/tps_msg.c b/modules/topos/tps_msg.c
index a44ff34..eee546d 100644
--- a/modules/topos/tps_msg.c
+++ b/modules/topos/tps_msg.c
@@ -381,7 +381,7 @@ int tps_pack_request(sip_msg_t *msg, tps_data_t *ptsd)
 			if(i==1) {
 				ptsd->bs_contact.s = ptsd->cp;
 				ptsd->bs_contact.len = rr->nameaddr.uri.len;
-				if(strnstr(ptsd->bs_contact.s, ";r2=on",
+				if(_strnstr(ptsd->bs_contact.s, ";r2=on",
 							ptsd->bs_contact.len)==0) {
 					LM_DBG("single record routing by proxy\n");
 					ptsd->as_contact.s = ptsd->cp;




More information about the sr-dev mailing list