Module: kamailio Branch: master Commit: cf0008d843009acc8e40fcad3eceda063b1a358c URL: https://github.com/kamailio/kamailio/commit/cf0008d843009acc8e40fcad3eceda06...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-06-07T08:48:34+02:00
tm: detect local uac transaction not inserted in the hash table
---
Modified: src/modules/tm/uac.c
---
Diff: https://github.com/kamailio/kamailio/commit/cf0008d843009acc8e40fcad3eceda06... Patch: https://github.com/kamailio/kamailio/commit/cf0008d843009acc8e40fcad3eceda06...
---
diff --git a/src/modules/tm/uac.c b/src/modules/tm/uac.c index 9e67c91fa2..340c011d6e 100644 --- a/src/modules/tm/uac.c +++ b/src/modules/tm/uac.c @@ -589,7 +589,8 @@ static inline int t_uac_prepare(uac_req_t *uac_r, if (is_ack) { free_cell(new_cell); } else { - if(atomic_get_int(&new_cell->ref_count)==0) { + if((new_cell->next_c == 0 && new_cell->prev_c == 0) + || (atomic_get_int(&new_cell->ref_count)==0)) { free_cell(new_cell); } else { UNREF_FREE(new_cell, 0);