[sr-dev] git:5.1:837dc3e0: tm: reset the tm cell content during free

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 2 16:13:37 CEST 2018


Module: kamailio
Branch: 5.1
Commit: 837dc3e07fb71e217706f6233f6d789256dd7dd6
URL: https://github.com/kamailio/kamailio/commit/837dc3e07fb71e217706f6233f6d789256dd7dd6

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-02T16:05:30+02:00

tm: reset the tm cell content during free

(cherry picked from commit fe19995ba150beca0acf6f4bdc1bb92f3c8348e1)

---

Modified: src/modules/tm/h_table.c

---

Diff:  https://github.com/kamailio/kamailio/commit/837dc3e07fb71e217706f6233f6d789256dd7dd6.diff
Patch: https://github.com/kamailio/kamailio/commit/837dc3e07fb71e217706f6233f6d789256dd7dd6.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