[xiph-commits] r18751 - icecast/branches/ph3/libshout/src

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Sat Dec 22 17:02:24 PST 2012


Author: ph3-der-loewe
Date: 2012-12-22 17:02:24 -0800 (Sat, 22 Dec 2012)
New Revision: 18751

Modified:
   icecast/branches/ph3/libshout/src/shout.c
Log:
also check name[] for being non-NULL

Modified: icecast/branches/ph3/libshout/src/shout.c
===================================================================
--- icecast/branches/ph3/libshout/src/shout.c	2012-12-22 01:48:21 UTC (rev 18750)
+++ icecast/branches/ph3/libshout/src/shout.c	2012-12-23 01:02:24 UTC (rev 18751)
@@ -656,7 +656,7 @@
 {
 	size_t i;
 
-	if (!self)
+	if (!self || !name)
 		return SHOUTERR_INSANE;
 
 	if (self->state != SHOUT_STATE_UNCONNECTED)



More information about the commits mailing list