瀏覽代碼

sipcapture: more init buffers content

Daniel-Constantin Mierla 3 年之前
父節點
當前提交
0b684a5d9a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/modules/sipcapture/sipcapture.c

+ 2 - 0
src/modules/sipcapture/sipcapture.c

@@ -2569,6 +2569,8 @@ int receive_logging_json_msg(char *buf, unsigned int len,
 	str corrtmp = STR_NULL;
 	_capture_mode_data_t *c = NULL;
 
+	ipstr_dst[0] = '\0';
+	ipstr_src[0] = '\0';
 	c = capture_def;
 	if(!c) {
 		LM_ERR("no connection mode available to store data\n");