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

Author: Stefan Mititelu <stefan.mitit...@net2phone.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-08-08T12:59:59+02:00

tm: add NULL check for transaction uac

---

Modified: src/modules/tm/timer.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/4e2a93074476a3e1747eb46cb197cd8f492d5902.diff
Patch: 
https://github.com/kamailio/kamailio/commit/4e2a93074476a3e1747eb46cb197cd8f492d5902.patch

---

diff --git a/src/modules/tm/timer.c b/src/modules/tm/timer.c
index 3f038e90a5e..972f9f85cd0 100644
--- a/src/modules/tm/timer.c
+++ b/src/modules/tm/timer.c
@@ -385,6 +385,12 @@ inline static void final_response_handler(
                return;
        };
 
+       /* FR if no transaction.... */
+       if(t->uac == NULL) {
+               LM_WARN("transaction %p no uac (flags %x)\n", t, t->flags);
+               return;
+       }
+
        /* lock reply processing to determine how to proceed reliably */
        LOCK_REPLIES(t);
        /* now it can be only a request retransmission buffer;

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to