mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
if the slave thread fails to auth against the master then log a warning
and drop back to waiting svn path=/icecast/branches/kh/icecast/; revision=7352
This commit is contained in:
parent
73e86dbec3
commit
080ce9787c
@ -438,6 +438,14 @@ static int update_from_master(ice_config_t *config)
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user