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

fix segv when fallback or dumpfilename are not specified

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