From: RĂ©mi Denis-Courmont Date: Sat, 3 Mar 2007 18:03:21 +0000 (+0000) Subject: Fix assertion failure X-Git-Tag: 0.9.0-test0~8278 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=cf8e72e9b3192f99e7ab8c4696286d44923c2cda;p=vlc Fix assertion failure --- diff --git a/src/network/httpd.c b/src/network/httpd.c index 433d995245..c0fcf1a1e8 100644 --- a/src/network/httpd.c +++ b/src/network/httpd.c @@ -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;