mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 22:56:59 +08:00
Fixed segmentation fault with empty config on Windows.
See here for report: http://mailman.nginx.org/pipermail/nginx-ru/2011-September/043288.html
This commit is contained in:
parent
554768dabb
commit
5cc90f309d
@ -1747,10 +1747,12 @@ ngx_http_add_listening(ngx_conf_t *cf, ngx_http_conf_addr_t *addr)
|
|||||||
|
|
||||||
#if (NGX_WIN32)
|
#if (NGX_WIN32)
|
||||||
{
|
{
|
||||||
ngx_iocp_conf_t *iocpcf;
|
ngx_iocp_conf_t *iocpcf = NULL;
|
||||||
|
|
||||||
iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module);
|
if (ngx_get_conf(cf->cycle->conf_ctx, ngx_events_module)) {
|
||||||
if (iocpcf->acceptex_read) {
|
iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module);
|
||||||
|
}
|
||||||
|
if (iocpcf && iocpcf->acceptex_read) {
|
||||||
ls->post_accept_buffer_size = cscf->client_header_buffer_size;
|
ls->post_accept_buffer_size = cscf->client_header_buffer_size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user