1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-11-03 04:17:17 -05:00

fix segv when fallback or dumpfilename are not specified

svn path=/trunk/icecast/; revision=5675
This commit is contained in:
Karl Heyes 2003-12-02 01:11:12 +00:00
parent 112ce96cf0
commit 25dcbd976d

View File

@ -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);
}