Module: sip-router
Branch: master
Commit: 519de2cdd1ed7fb969d3bb2cf5792d4180078cbb
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=519de2c…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Wed Sep 18 08:18:33 2013 +0300
modules/lcr: fixed checking of IPv4 address in to_any_gw_2 function
- Patch was provided by Reinier Boon.
---
modules/lcr/lcr_mod.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c
index 1b7eeb8..b770d2e 100644
--- a/modules/lcr/lcr_mod.c
+++ b/modules/lcr/lcr_mod.c
@@ -2661,7 +2661,7 @@ static int to_any_gw_2(struct sip_msg* _m, char* _addr, char*
_transport)
addr_str.len = strlen(_addr);
if ((ip = str2ip(&addr_str)) != NULL)
dst_addr = *ip;
- if ((ip = str2ip6(&addr_str)) != NULL)
+ else if ((ip = str2ip6(&addr_str)) != NULL)
dst_addr = *ip;
else {
LM_ERR("addr param value %s is not an IP address\n", _addr);