[xiph-commits] r13877 - icecast/trunk/icecast/src

karl at svn.xiph.org karl at svn.xiph.org
Fri Sep 21 18:21:17 PDT 2007


Author: karl
Date: 2007-09-21 18:21:17 -0700 (Fri, 21 Sep 2007)
New Revision: 13877

Modified:
   icecast/trunk/icecast/src/auth.c
Log:
make sure mount authentication has a type specified


Modified: icecast/trunk/icecast/src/auth.c
===================================================================
--- icecast/trunk/icecast/src/auth.c	2007-09-22 00:48:32 UTC (rev 13876)
+++ icecast/trunk/icecast/src/auth.c	2007-09-22 01:21:17 UTC (rev 13877)
@@ -529,6 +529,11 @@
 
 static int get_authenticator (auth_t *auth, config_options_t *options)
 {
+    if (auth->type == NULL)
+    {
+        WARN0 ("no authentication type defined");
+        return -1;
+    }
     do
     {
         DEBUG1 ("type is %s", auth->type);



More information about the commits mailing list