[sr-dev] git:master:849763ae: sipt: set whole static buffer to 0

Henning Westerholt hw at skalatan.de
Thu Aug 8 21:09:06 CEST 2019


Module: kamailio
Branch: master
Commit: 849763ae85e50e838e26c7b107bcc29556c0e052
URL: https://github.com/kamailio/kamailio/commit/849763ae85e50e838e26c7b107bcc29556c0e052

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-08-08T21:06:42+02:00

sipt: set whole static buffer to 0

---

Modified: src/modules/sipt/sipt.c

---

Diff:  https://github.com/kamailio/kamailio/commit/849763ae85e50e838e26c7b107bcc29556c0e052.diff
Patch: https://github.com/kamailio/kamailio/commit/849763ae85e50e838e26c7b107bcc29556c0e052.patch

---

diff --git a/src/modules/sipt/sipt.c b/src/modules/sipt/sipt.c
index f64686dbc7..58b92fd985 100644
--- a/src/modules/sipt/sipt.c
+++ b/src/modules/sipt/sipt.c
@@ -339,7 +339,7 @@ static int sipt_get_redirection_number(struct sip_msg *msg, pv_param_t *param, p
 	str body;
 	body.s = get_body_part(msg, TYPE_APPLICATION,SUBTYPE_ISUP,&body.len);
 
-	sb_s_buf[0] = '\0';
+	memset(sb_s_buf, 0, 26);
 	if(body.s == NULL)
 	{
 		LM_INFO("No ISUP Message Found");




More information about the sr-dev mailing list