Kaynağa Gözat

sipcapture: init buffers content

Daniel-Constantin Mierla 3 yıl önce
ebeveyn
işleme
9292b9f5da
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      src/modules/sipcapture/sipcapture.c

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

@@ -2580,6 +2580,8 @@ int receive_logging_json_msg(char *buf, unsigned int len,
 		return -1;
 	}
 
+	ipstr_dst[0] = '\0';
+	ipstr_src[0] = '\0';
 	memset(&sco, 0, sizeof(struct _sipcapture_object));
 	gettimeofday(&tvb, &tz);