Module: sip-router
Branch: master
Commit: 2812bd9c426d7a186bdc9b1d5fc4766315a64290
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2812bd9…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
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.
---
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 58e6fbc..ff8b4c5 100644
--- a/modules/tm/t_lookup.c
+++ b/modules/tm/t_lookup.c
@@ -1551,7 +1551,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);