From: Christian Richter Date: Fri, 16 Nov 2007 08:54:04 +0000 (+0000) Subject: fixed compilation of chan_misdn, #11269, thanks IgorG. X-Git-Tag: 1.6.0-beta1~3^2~856 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bc0f6919f0e8366e613b56d38a97ff1ee7ce1a6;p=thirdparty%2Fasterisk.git fixed compilation of chan_misdn, #11269, thanks IgorG. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89319 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index c0264bc926..4996bfb41c 100644 --- a/channels/chan_misdn.c +++ b/channels/chan_misdn.c @@ -1686,11 +1686,11 @@ static char *complete_ch_helper(struct ast_cli_args *a, int rpos) if (++which > a->n) break; } - ast_mutex_unlock(&c->lock); + ast_channel_unlock(c); } if (c) { ret = ast_strdup(c->name); - ast_mutex_unlock(&c->lock); + ast_channel_unlock(c); } else ret = NULL; return ret;