]> 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:34:00 +0000 (09:34 -0600)
Change-Id: I872060a30543776a176a316309602d924a23eb29

res/res_pjsip_history.c

index bcc4877f690b30463ed2683f19cf3ff1b8ee9c60..ffe1a1d88169918b19930be949c6cc295b2e8b31 100644 (file)
@@ -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);
                }
        }