]> git.sesse.net Git - vlc/commitdiff
Fix assertion failure
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 3 Mar 2007 18:03:21 +0000 (18:03 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 3 Mar 2007 18:03:21 +0000 (18:03 +0000)
src/network/httpd.c

index 433d995245189417677ba05978ec161d9b135b6a..c0fcf1a1e88ba3379869127b571af9a0d128ba31 100644 (file)
@@ -2467,7 +2467,6 @@ static void httpd_HostThread( httpd_host_t *host )
         for( nfd = 0; nfd < host->nfd; nfd++ )
         {
             httpd_client_t *cl;
-            int fd;
             int i_state = -1;
 
             assert (ufd[nfd].fd == host->fds[nfd]);
@@ -2476,7 +2475,8 @@ static void httpd_HostThread( httpd_host_t *host )
                 continue;
 
             /* */
-            fd = net_Accept( host, host->fds, 0 );
+            int kludge[] = { ufd[nfd].fd, -1 };
+            int fd = net_Accept( host, kludge, 0 );
             if( fd < 0 )
                 continue;