1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -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,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) {