[xiph-cvs] cvs commit: icecast/src connection.c
Michael Smith
msmith at xiph.org
Thu Jan 23 03:12:54 PST 2003
msmith 03/01/23 06:12:54
Modified: src connection.c
Log:
Fix segfault if current source didn't exist on fallback mount request.
Revision Changes Path
1.42 +5 -0 icecast/src/connection.c
Index: connection.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/connection.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- connection.c 18 Jan 2003 07:39:29 -0000 1.41
+++ connection.c 23 Jan 2003 11:12:54 -0000 1.42
@@ -443,6 +443,11 @@
source = source_find_mount(mount);
avl_tree_unlock(global.source_tree);
+ if(source == NULL) {
+ client_send_400(client, "Current source not found");
+ return;
+ }
+
old = source->fallback_mount;
source->fallback_mount = strdup(value);
free(old);
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list