Skip to content
Snippets Groups Projects
Commit 9c94c027 authored by Joshua C. Colp's avatar Joshua C. Colp
Browse files

res_ari_applications: Fix incorrect call to ao2_lock.

When listing the applications the apps lock was incorrectly
locked twice instead of being locked and then unlocked.

ASTERISK-28302

Change-Id: If7d064592a9e88c0f1049214c50e02be6dabf79e
parent 82758295
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ void ast_ari_applications_list(struct ast_variable *headers,
ao2_lock(apps);
count = ao2_container_count(apps);
ao2_callback(apps, OBJ_NOLOCK | OBJ_NODATA, append_json, json);
ao2_lock(apps);
ao2_unlock(apps);
if (count != ast_json_array_size(json)) {
ast_ari_response_error(response, 500, "Internal Server Error",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment