From: Corey Farrell Date: Thu, 4 Jan 2018 15:30:48 +0000 (-0500) Subject: res_pjsip_history: Add missing unlock to CLI command. X-Git-Tag: 13.20.0-rc1~125^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d73a3a176485d3f3edf1071a4a1ced13dfefc375;p=thirdparty%2Fasterisk.git res_pjsip_history: Add missing unlock to CLI command. Change-Id: I872060a30543776a176a316309602d924a23eb29 --- diff --git a/res/res_pjsip_history.c b/res/res_pjsip_history.c index bcc4877f69..ffe1a1d881 100644 --- a/res/res_pjsip_history.c +++ b/res/res_pjsip_history.c @@ -1282,7 +1282,7 @@ static char *pjsip_show_history(struct ast_cli_entry *e, int cmd, struct ast_cli } entry = ao2_bump(AST_VECTOR_GET(vec, 0)); if (vec == &vector_history) { - ast_mutex_lock(&history_lock); + ast_mutex_unlock(&history_lock); } }