[asterisk-commits] rmudgett: branch 1.8 r328302 - /branches/1.8/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 14 18:12:09 CDT 2011


Author: rmudgett
Date: Thu Jul 14 18:12:06 2011
New Revision: 328302

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=328302
Log:
Missing SIP pvt and channel unlock in sip_set_rtp_peer().

Regression introduced by -r326144.

Add missing SIP pvt and channel unlock in sip_set_rtp_peer().

Modified:
    branches/1.8/channels/chan_sip.c

Modified: branches/1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_sip.c?view=diff&rev=328302&r1=328301&r2=328302
==============================================================================
--- branches/1.8/channels/chan_sip.c (original)
+++ branches/1.8/channels/chan_sip.c Thu Jul 14 18:12:06 2011
@@ -28379,7 +28379,9 @@
 	if ((instance || vinstance || tinstance) &&
 		!ast_bridged_channel(chan) &&
 		!sip_cfg.directrtpsetup) {
-			return 0;
+		sip_pvt_unlock(p);
+		ast_channel_unlock(chan);
+		return 0;
 	}
 
 	if (p->alreadygone) {




More information about the asterisk-commits mailing list