Module: sip-router
Branch: master
Commit: 78a1c7e972b66c882e9466404d1cb6c08982eb91
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=78a1c7e…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Sun Sep 15 18:06:18 2013 -0400
ipops: fix warning: variable âtâet but not used [-Wunused-but-set-variable]
---
modules/ipops/ipops_mod.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/ipops/ipops_mod.c b/modules/ipops/ipops_mod.c
index c87a0eb..d90aaa3 100644
--- a/modules/ipops/ipops_mod.c
+++ b/modules/ipops/ipops_mod.c
@@ -703,7 +703,6 @@ static int w_dns_int_match_ip(sip_msg_t *msg, char *hnp, char *ipp)
str ips;
struct hostent* he;
char ** h;
- int ret;
if (fixup_get_svalue(msg, (gparam_p)hnp, &hns))
{
@@ -729,7 +728,7 @@ static int w_dns_int_match_ip(sip_msg_t *msg, char *hnp, char *ipp)
DBG("could not resolve %s\n", hns.s);
return -4;
}
- ret = 0;
+
if (he->h_addrtype==ipa->af)
{
for(h=he->h_addr_list; (*h); h++)