Explorar o código

sipcapture: init buffers content

Daniel-Constantin Mierla %!s(int64=3) %!d(string=hai) anos
pai
achega
9292b9f5da
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);