Skip to content
Snippets Groups Projects
Commit 759f4c11 authored by Jenkins2's avatar Jenkins2 Committed by Gerrit Code Review
Browse files

Merge "res_ari_events: Fix use after free / double-free of JSON message."

parents bd67e634 5247ba4b
Branches
Tags
No related merge requests found
......@@ -108,7 +108,9 @@ static void stasis_app_message_handler(
msg_application);
} else if (!session->ws_session) {
/* If the websocket is NULL, the message goes to the queue */
AST_VECTOR_APPEND(&session->message_queue, message);
if (!AST_VECTOR_APPEND(&session->message_queue, message)) {
ast_json_ref(message);
}
ast_log(LOG_WARNING,
"Queued '%s' message for Stasis app '%s'; websocket is not ready\n",
msg_type,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment