Commit 6f1f4072 authored by Michael Smith's avatar Michael Smith
Browse files

Fix segfault if current source didn't exist on fallback mount request.

svn path=/trunk/icecast/; revision=4292
parent ac6bd1d2
......@@ -443,6 +443,11 @@ static void handle_fallback_request(client_t *client)
source = source_find_mount(mount);
if(source == NULL) {
client_send_400(client, "Current source not found");
old = source->fallback_mount;
source->fallback_mount = strdup(value);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment