[sr-dev] git:master:fe19995b: tm: reset the tm cell content during free

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 2 09:00:56 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-02T08:59:56+02:00

tm: reset the tm cell content during free

---

Modified: src/modules/tm/h_table.c

---

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

---

diff --git a/src/modules/tm/h_table.c b/src/modules/tm/h_table.c
index 1ec5747207..d4c86db9b5 100644
--- a/src/modules/tm/h_table.c
+++ b/src/modules/tm/h_table.c
@@ -253,6 +253,7 @@ void free_cell_helper(
 		xavp_destroy_list_unsafe(&dead_cell->xavps_list);
 #endif
 
+	memset(dead_cell, 0, sizeof(tm_cell_t));
 	/* the cell's body */
 	shm_free_unsafe(dead_cell);
 




More information about the sr-dev mailing list