Fixed segmentation fault with empty config on Windows.
See here for report:
http://mailman.nginx.org/pipermail/nginx-ru/2011-September/043288.html
Maxim Dounin
10 years ago
1746 | 1746 | |
1747 | 1747 | #if (NGX_WIN32) |
1748 | 1748 | { |
1749 | ngx_iocp_conf_t *iocpcf; | |
1750 | ||
1751 | iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module); | |
1752 | if (iocpcf->acceptex_read) { | |
1749 | ngx_iocp_conf_t *iocpcf = NULL; | |
1750 | ||
1751 | if (ngx_get_conf(cf->cycle->conf_ctx, ngx_events_module)) { | |
1752 | iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module); | |
1753 | } | |
1754 | if (iocpcf && iocpcf->acceptex_read) { | |
1753 | 1755 | ls->post_accept_buffer_size = cscf->client_header_buffer_size; |
1754 | 1756 | } |
1755 | 1757 | } |