[xiph-commits] r7352 - icecast/branches/kh/icecast/src

karl at dactyl.lonelymoon.com karl
Mon Jul 26 12:19:49 PDT 2004


Author: karl
Date: Mon Jul 26 12:19:49 2004
New Revision: 7352

Modified:
icecast/branches/kh/icecast/src/slave.c
Log:
if the slave thread fails to auth against the master then log a warning
and drop back to waiting


Modified: icecast/branches/kh/icecast/src/slave.c
===================================================================
--- icecast/branches/kh/icecast/src/slave.c	2004-07-26 16:34:30 UTC (rev 7351)
+++ icecast/branches/kh/icecast/src/slave.c	2004-07-26 19:19:47 UTC (rev 7352)
@@ -438,6 +438,14 @@
free(authheader);
free(data);

+        sock_read_line(mastersock, buf, sizeof(buf));
+        if (strncmp (buf, "HTTP/1.0 200", 12) != 0)
+        {
+            sock_close (mastersock);
+            WARN0 ("Master rejected authentication");
+            break;
+        }
+
while (sock_read_line(mastersock, buf, sizeof(buf)))
{
if (!strlen(buf))



More information about the commits mailing list