Skip to content
Snippets Groups Projects
Commit b9bb96ff authored by Igor Goncharovsky's avatar Igor Goncharovsky Committed by Friendly Automation
Browse files

res_ari: Fix audiosocket segfault

Add check that data parameter specified when audiosocket used for externalMedia.

ASTERISK-29514 #close

Change-Id: Ie562f03c5d6c3835a3631f376b3d43e75b8f9617
parent 146b59df
No related branches found
No related tags found
1 merge request!48asterisk uplift to 18.11.2
......@@ -2134,6 +2134,11 @@ static void external_media_audiosocket_tcp(struct ast_ari_channels_external_medi
struct ast_channel *chan;
struct varshead *vars;
if (ast_strlen_zero(args->data)) {
ast_ari_response_error(response, 400, "Bad Request", "data can not be empty");
return;
}
endpoint_len = strlen("AudioSocket/") + strlen(args->external_host) + 1 + strlen(args->data) + 1;
endpoint = ast_alloca(endpoint_len);
/* The UUID is stored in the arbitrary data field */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment