From: Richard Mudgett Date: Fri, 16 Dec 2011 21:30:01 +0000 (+0000) Subject: Fix cut and past error in ast_call_forward(). X-Git-Tag: 10.1.0-rc1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e95b1dc220a9159b665feaa86023ec9b37f13112;p=thirdparty%2Fasterisk.git Fix cut and past error in ast_call_forward(). (issue ASTERISK-18836) ........ Merged revisions 348401 from http://svn.asterisk.org/svn/asterisk/branches/1.8 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@348405 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index 57788b5bde..54a102d220 100644 --- a/main/channel.c +++ b/main/channel.c @@ -5437,7 +5437,7 @@ struct ast_channel *ast_call_forward(struct ast_channel *caller, struct ast_chan if (oh->account) { ast_channel_lock(new); ast_cdr_setaccount(new, oh->account); - ast_channel_lock(new); + ast_channel_unlock(new); } } else if (caller) { /* no outgoing helper so use caller if avaliable */ ast_channel_update_redirecting(caller, apr, NULL);