[sr-dev] git:master:44db76ac: cplc: init time switch structures

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 31 15:54:50 CEST 2017


Module: kamailio
Branch: master
Commit: 44db76acb7523b3cd6816c77de45b71857b1a3c1
URL: https://github.com/kamailio/kamailio/commit/44db76acb7523b3cd6816c77de45b71857b1a3c1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-07-31T15:54:27+02:00

cplc: init time switch structures

---

Modified: src/modules/cplc/cpl_switches.h

---

Diff:  https://github.com/kamailio/kamailio/commit/44db76acb7523b3cd6816c77de45b71857b1a3c1.diff
Patch: https://github.com/kamailio/kamailio/commit/44db76acb7523b3cd6816c77de45b71857b1a3c1.patch

---

diff --git a/src/modules/cplc/cpl_switches.h b/src/modules/cplc/cpl_switches.h
index 03e9a48ae9..4a99b2cbe4 100644
--- a/src/modules/cplc/cpl_switches.h
+++ b/src/modules/cplc/cpl_switches.h
@@ -686,6 +686,9 @@ static inline char *run_time_switch( struct cpl_interpreter *intr )
 	ac_tm_t att;
 	tmrec_t trt;
 
+	memset(&att, 0, sizeof(ac_tm_t));
+	memset(&trt, 0, sizeof(tmrec_t));
+
 	LM_DBG("checking recv. time stamp <%d>\n",
 		intr->recv_time);
 	switch (NR_OF_ATTR(intr->ip)) {




More information about the sr-dev mailing list