mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
missing test from a previous patch, the running check needs to apply as well
svn path=/icecast/trunk/icecast/; revision=8223
This commit is contained in:
parent
b2b2850708
commit
524d467a25
25
src/admin.c
25
src/admin.c
@ -339,15 +339,22 @@ void admin_handle_request(client_t *client, char *uri)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!source->shoutcast_compat) {
|
if (source->running == 0)
|
||||||
if (source->running == 0)
|
{
|
||||||
{
|
avl_tree_unlock (global.source_tree);
|
||||||
INFO2("Received admin command %s on unavailable mount \"%s\"",
|
INFO2("Received admin command %s on unavailable mount \"%s\"",
|
||||||
command_string, mount);
|
command_string, mount);
|
||||||
avl_tree_unlock (global.source_tree);
|
client_send_400 (client, "Source is not available");
|
||||||
client_send_400 (client, "Source is not available");
|
return;
|
||||||
return;
|
}
|
||||||
}
|
if (command == COMMAND_SHOUTCAST_METADATA_UPDATE &&
|
||||||
|
source->shoutcast_compat == 0)
|
||||||
|
{
|
||||||
|
avl_tree_unlock (global.source_tree);
|
||||||
|
ERROR0 ("illegal change of metadata on non-shoutcast "
|
||||||
|
"compatible stream");
|
||||||
|
client_send_400 (client, "illegal metadata call");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
INFO2("Received admin command %s on mount \"%s\"",
|
INFO2("Received admin command %s on mount \"%s\"",
|
||||||
command_string, mount);
|
command_string, mount);
|
||||||
|
Loading…
Reference in New Issue
Block a user