瀏覽代碼

core: select - init proto string to udp

Daniel-Constantin Mierla 7 年之前
父節點
當前提交
da31e70a2c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;