]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_history: Add missing unlock to CLI command.
authorCorey Farrell <git@cfware.com>
Thu, 4 Jan 2018 15:30:48 +0000 (10:30 -0500)
committerCorey Farrell <git@cfware.com>
Thu, 4 Jan 2018 15:33:50 +0000 (09:33 -0600)
Change-Id: I872060a30543776a176a316309602d924a23eb29

res/res_pjsip_history.c

index ed374d605b12b6e855666da51ef9a86e93530db2..d6b3eebe9b777bcc2948da49012b178126ff5b30 100644 (file)
@@ -1280,7 +1280,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);
                }
        }