Module: kamailio Branch: 4.3 Commit: ff64906a7cf9d6704dc82ab52a49ef0ed48d8fde URL: https://github.com/kamailio/kamailio/commit/ff64906a7cf9d6704dc82ab52a49ef0e...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-11-16T11:53:42+01:00
tm: reset next/prev fields when unlinking transaction from hash table
(cherry picked from commit 649141185f231435bbe03fd13fe5a0e65b9fed04)
---
Modified: modules/tm/h_table.h
---
Diff: https://github.com/kamailio/kamailio/commit/ff64906a7cf9d6704dc82ab52a49ef0e... Patch: https://github.com/kamailio/kamailio/commit/ff64906a7cf9d6704dc82ab52a49ef0e...
---
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){