[asterisk-commits] russell: trunk r101577 - /trunk/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jan 31 15:33:34 CST 2008
Author: russell
Date: Thu Jan 31 15:33:33 2008
New Revision: 101577
URL: http://svn.digium.com/view/asterisk?view=rev&rev=101577
Log:
Fix a simple deadlock that was introduced _right_ before this code got merged
into trunk.
(closes issue #11895, reported by pj, patched by me)
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=101577&r1=101576&r2=101577
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Jan 31 15:33:33 2008
@@ -17903,8 +17903,10 @@
AST_LIST_TRAVERSE(&threadl, th, list) {
if ((s->sin_family == th->ser->requestor.sin_family) &&
(s->sin_addr.s_addr == th->ser->requestor.sin_addr.s_addr) &&
- (s->sin_port == th->ser->requestor.sin_port))
+ (s->sin_port == th->ser->requestor.sin_port)) {
+ AST_LIST_UNLOCK(&threadl);
return th->ser;
+ }
}
AST_LIST_UNLOCK(&threadl);
return NULL;
More information about the asterisk-commits
mailing list