Commit 25dcbd97 authored by Karl Heyes's avatar Karl Heyes
Browse files

fix segv when fallback or dumpfilename are not specified

svn path=/trunk/icecast/; revision=5675
parent 112ce96c
......@@ -72,8 +72,10 @@ source_t *source_create(client_t *client, connection_t *con,
src->yp_public = 0;
if(mountinfo != NULL) {
if (mountinfo->fallback_mount != NULL)
src->fallback_mount = strdup (mountinfo->fallback_mount);
src->max_listeners = mountinfo->max_listeners;
if (mountinfo->dumpfile != NULL)
src->dumpfilename = strdup (mountinfo->dumpfile);
Markdown is supported
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