diff options
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r-- | channels/chan_misdn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c index c0264bc92..4996bfb41 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; |