Browse Source

sipcapture: more init buffers content

Daniel-Constantin Mierla 3 years ago
parent
commit
0b684a5d9a
1 changed files with 2 additions and 0 deletions
  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");