Explorar o código

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

Juha Heinanen %!s(int64=12) %!d(string=hai) anos
pai
achega
8ffa88060e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/lcr/lcr_mod.c

+ 1 - 1
modules/lcr/lcr_mod.c

@@ -2676,7 +2676,7 @@ static int to_any_gw_2(struct sip_msg* _m, char* _addr, char* _transport)
     if ((ip = str2ip(&addr_str)) != NULL)
 	dst_addr = *ip;
 #ifdef USE_IPV6
-    if ((ip = str2ip6(&addr_str)) != NULL)
+    else if ((ip = str2ip6(&addr_str)) != NULL)
 	dst_addr = *ip;
 #endif
     else {