[sr-dev] git:master:9292b9f5: sipcapture: init buffers content

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 15 10:00:52 CET 2022


Module: kamailio
Branch: master
Commit: 9292b9f5daacfa5340b5fe1a5f02469a7e597d9b
URL: https://github.com/kamailio/kamailio/commit/9292b9f5daacfa5340b5fe1a5f02469a7e597d9b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-03-15T10:00:41+01:00

sipcapture: init buffers content

---

Modified: src/modules/sipcapture/sipcapture.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9292b9f5daacfa5340b5fe1a5f02469a7e597d9b.diff
Patch: https://github.com/kamailio/kamailio/commit/9292b9f5daacfa5340b5fe1a5f02469a7e597d9b.patch

---

diff --git a/src/modules/sipcapture/sipcapture.c b/src/modules/sipcapture/sipcapture.c
index 9070e1e9fc..4c032ab239 100644
--- a/src/modules/sipcapture/sipcapture.c
+++ b/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);
 




More information about the sr-dev mailing list