Module: kamailio
Branch: master
Commit: 649141185f231435bbe03fd13fe5a0e65b9fed04
URL:
https://github.com/kamailio/kamailio/commit/649141185f231435bbe03fd13fe5a0e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-09-23T22:53:01+02:00
tm: reset next/prev fields when unlinking transaction from hash table
---
Modified: modules/tm/h_table.h
---
Diff:
https://github.com/kamailio/kamailio/commit/649141185f231435bbe03fd13fe5a0e…
Patch:
https://github.com/kamailio/kamailio/commit/649141185f231435bbe03fd13fe5a0e…
---
diff --git a/modules/tm/h_table.h b/modules/tm/h_table.h
index 9340e5b..7cda34e 100644
--- a/modules/tm/h_table.h
+++ b/modules/tm/h_table.h
@@ -590,6 +590,8 @@ inline static void insert_into_hash_table_unsafe( struct cell *
p_cell,
inline static void remove_from_hash_table_unsafe( struct cell * p_cell)
{
clist_rm(p_cell, next_c, prev_c);
+ p_cell->next_c = 0;
+ p_cell->prev_c = 0;
# ifdef EXTRA_DEBUG
#ifdef TM_HASH_STATS
if (_tm_table->entries[p_cell->hash_index].cur_entries==0){