From: Richard Mudgett Date: Thu, 14 Jul 2011 23:12:06 +0000 (+0000) Subject: Missing SIP pvt and channel unlock in sip_set_rtp_peer(). X-Git-Tag: 1.8.6.0-rc1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e086f457671c54e62430dd9eadaa8116fb858a8;p=thirdparty%2Fasterisk.git 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(). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@328302 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d2926630e4..3c0a46e2d3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -28379,7 +28379,9 @@ static int sip_set_rtp_peer(struct ast_channel *chan, struct ast_rtp_instance *i 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) {