Commit 539871f3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

0 is a legal socket descriptor

parent 418edc0d
......@@ -2356,7 +2356,7 @@ static void httpd_HostThread( httpd_host_t *host )
int fd;
fd = accept( host->fd, (struct sockaddr *)&sock, &i_sock_size );
if( fd > 0 )
if( fd >= 0 )
{
char *ip;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment