From b4d1206fd50bb61d1ad9ff4ed500157105b140b6 Mon Sep 17 00:00:00 2001 From: Ovidiu Sas Date: Mon, 14 Mar 2016 17:03:30 -0400 Subject: [PATCH] modules/topos: fix warning: comparison between pointer and integer [enabled by default] --- modules/topos/tps_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/topos/tps_msg.c b/modules/topos/tps_msg.c index 0aa12adcdd2..da1adc960e9 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;