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

15.6
Joshua Colp 8 years ago committed by Gerrit Code Review
commit 0553ee1b9e

@ -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,

Loading…
Cancel
Save