Commit e732cff5 authored by Laurent Aimar's avatar Laurent Aimar

Fixed httpd stack corruption.

(Fixed 'assert (pufd < ufd + (sizeof (ufd) / sizeof (ufd[0])))' reported
 by xxcv)
parent 4a82316d
......@@ -2035,7 +2035,7 @@ static void httpd_HostThread( httpd_host_t *host )
if( ( p_tls == NULL ) && ( host->p_tls != NULL ) )
p_tls = tls_ServerSessionPrepare( host->p_tls );
struct pollfd ufd[host->nfd + host->i_client];
struct pollfd ufd[host->nfd + host->i_client + host->nfd]; /* We have nfd listening sockets, i_client, and lay accept up to nfd new client */
unsigned nfd;
for (nfd = 0; nfd < host->nfd; nfd++)
{
......
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