[sr-dev] git:master:692d15ce: pua_reginfo: init uri buffer

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


Module: kamailio
Branch: master
Commit: 692d15ce9bcc329fff55060dcdc8e5161f12c30e
URL: https://github.com/kamailio/kamailio/commit/692d15ce9bcc329fff55060dcdc8e5161f12c30e

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

pua_reginfo: init uri buffer

---

Modified: src/modules/pua_reginfo/notify.c

---

Diff:  https://github.com/kamailio/kamailio/commit/692d15ce9bcc329fff55060dcdc8e5161f12c30e.diff
Patch: https://github.com/kamailio/kamailio/commit/692d15ce9bcc329fff55060dcdc8e5161f12c30e.patch

---

diff --git a/src/modules/pua_reginfo/notify.c b/src/modules/pua_reginfo/notify.c
index ee533a6a63..07fceba899 100644
--- a/src/modules/pua_reginfo/notify.c
+++ b/src/modules/pua_reginfo/notify.c
@@ -239,6 +239,7 @@ int process_body(str notify_body, udomain_t * domain) {
 	/* Temporary */
 	int mem_only = 1;
 
+	uri[0] = '\0';
 	doc = xmlParseMemory(notify_body.s, notify_body.len);
 	if(doc== NULL)  {
 		LM_ERR("Error while parsing the xml body message, Body is:\n%.*s\n",




More information about the sr-dev mailing list