[sr-dev] git:kamailio_3.0: modules/tm: fixed t_unref bug catcher

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Oct 11 11:43:56 CEST 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 65be1c576e31cfeb9f1a1ec0c095ddfcad303e7f
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=65be1c576e31cfeb9f1a1ec0c095ddfcad303e7f

Author: Juha Heinanen <jh at tutpro.com>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Mon Apr 19 18:28:07 2010 +0300

modules/tm: fixed t_unref bug catcher

- On behalf Andrei, added one more condition to t_unref bug catcher in
  order to avoid invalid BUG message.
(cherry picked from commit 2812bd9c426d7a186bdc9b1d5fc4766315a64290)

---

 modules/tm/t_lookup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/tm/t_lookup.c b/modules/tm/t_lookup.c
index c706d91..04f8a43 100644
--- a/modules/tm/t_lookup.c
+++ b/modules/tm/t_lookup.c
@@ -1539,7 +1539,7 @@ int t_unref( struct sip_msg* p_msg  )
 			LOG(L_WARN, "WARNING: script writer didn't release transaction\n");
 			t_release_transaction(T);
 		}else if (unlikely((kr & REQ_ERR_DELAYED) &&
-					 (kr & ~(REQ_RLSD|REQ_RPLD|REQ_ERR_DELAYED)))){
+					 (kr & ~(REQ_RLSD|REQ_RPLD|REQ_ERR_DELAYED|REQ_FWDED)))){
 			BUG("tm: t_unref: REQ_ERR DELAYED should have been caught much"
 					" earlier for %p: %d (hex %x)\n",T, kr, kr);
 			t_release_transaction(T);




More information about the sr-dev mailing list