[sr-dev] git:4.4:3ef987c3: modules/topos: fix warning: comparison between pointer and integer [enabled by default]
Ovidiu Sas
osas at voipembedded.com
Mon Mar 14 22:05:24 CET 2016
Module: kamailio
Branch: 4.4
Commit: 3ef987c3230bb76f0eb1dea35998866271c93f31
URL: https://github.com/kamailio/kamailio/commit/3ef987c3230bb76f0eb1dea35998866271c93f31
Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: 2016-03-14T17:05:00-04:00
modules/topos: fix warning: comparison between pointer and integer [enabled by default]
(cherry picked from commit b4d1206fd50bb61d1ad9ff4ed500157105b140b6)
---
Modified: modules/topos/tps_msg.c
---
Diff: https://github.com/kamailio/kamailio/commit/3ef987c3230bb76f0eb1dea35998866271c93f31.diff
Patch: https://github.com/kamailio/kamailio/commit/3ef987c3230bb76f0eb1dea35998866271c93f31.patch
---
diff --git a/modules/topos/tps_msg.c b/modules/topos/tps_msg.c
index 0aa12ad..da1adc9 100644
--- a/modules/topos/tps_msg.c
+++ b/modules/topos/tps_msg.c
@@ -382,7 +382,7 @@ int tps_pack_request(sip_msg_t *msg, tps_data_t *ptsd)
ptsd->bs_contact.s = ptsd->cp;
ptsd->bs_contact.len = rr->nameaddr.uri.len;
if(strnstr(ptsd->bs_contact.s, ";r2=on",
- ptsd->bs_contact.len)==NULL) {
+ ptsd->bs_contact.len)==0) {
LM_DBG("single record routing by proxy\n");
ptsd->as_contact.s = ptsd->cp;
ptsd->as_contact.len = rr->nameaddr.uri.len;
More information about the sr-dev
mailing list