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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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/cf0008d843009acc8e40fcad3eceda063b1a358c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/cf0008d843009acc8e40fcad3eceda063b1a358c.patch

---

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);


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to