From: Joshua Colp Date: Thu, 19 Dec 2013 12:17:52 +0000 (+0000) Subject: channel: Add a missing ast_channel_unlock when allocating a Surrogate channel. X-Git-Tag: 12.0.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be58afd8df9676d3d69aa613d07e193d4b22b12f;p=thirdparty%2Fasterisk.git channel: Add a missing ast_channel_unlock when allocating a Surrogate channel. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@404332 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index 669b81529b..b4ee0c3b7b 100644 --- a/main/channel.c +++ b/main/channel.c @@ -10355,6 +10355,8 @@ struct ast_channel *ast_channel_yank(struct ast_channel *yankee) ast_format_copy(ast_channel_readformat(yanked_chan), &my_vars.readformat); ast_format_copy(ast_channel_writeformat(yanked_chan), &my_vars.writeformat); + ast_channel_unlock(yanked_chan); + if (ast_channel_move(yanked_chan, yankee)) { ast_hangup(yanked_chan); return NULL;