]> git.sesse.net Git - vlc/commitdiff
0 is a legal socket descriptor
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 6 Sep 2004 11:45:44 +0000 (11:45 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 6 Sep 2004 11:45:44 +0000 (11:45 +0000)
src/misc/httpd.c

index 339ab72284e5eef92bef7d9937cdee2cc7a56d15..8e09797957ca4fec21c99d447c4f818c36e178d5 100644 (file)
@@ -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;