Forráskód Böngészése

modules/lcr: fixed checking of IPv4 address in to_any_gw_2 function

- Patch was provided by Reinier Boon.
Juha Heinanen 12 éve
szülő
commit
519de2cdd1
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      modules/lcr/lcr_mod.c

+ 1 - 1
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);