Explorar o código

core: select - init proto string to udp

Daniel-Constantin Mierla %!s(int64=7) %!d(string=hai) anos
pai
achega
da31e70a2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/select_core.c

+ 1 - 1
src/core/select_core.c

@@ -1286,7 +1286,7 @@ ABSTRACT_F(select_dst)
 ABSTRACT_F(select_rcv)
 int select_ip_port(str* res, select_t* s, struct sip_msg* msg)
 {
-	str ip_str=STR_NULL, port_str=STR_NULL, proto_str=STR_NULL;
+	str ip_str=STR_NULL, port_str=STR_NULL, proto_str=str_init("udp");
 	int param, pos;