comparison src/http/ngx_http.c @ 4154:57d45d345651

Fixed segmentation fault with empty config on Windows. See here for report: http://mailman.nginx.org/pipermail/nginx-ru/2011-September/043288.html
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 27 Sep 2011 12:07:09 +0000
parents 7b632622ba56
children c4513d4dd024
comparison
equal deleted inserted replaced
4153:7de74ed694c8 4154:57d45d345651
1745 ls->log.data = &ls->addr_text; 1745 ls->log.data = &ls->addr_text;
1746 ls->log.handler = ngx_accept_log_error; 1746 ls->log.handler = ngx_accept_log_error;
1747 1747
1748 #if (NGX_WIN32) 1748 #if (NGX_WIN32)
1749 { 1749 {
1750 ngx_iocp_conf_t *iocpcf; 1750 ngx_iocp_conf_t *iocpcf = NULL;
1751 1751
1752 iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module); 1752 if (ngx_get_conf(cf->cycle->conf_ctx, ngx_events_module)) {
1753 if (iocpcf->acceptex_read) { 1753 iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module);
1754 }
1755 if (iocpcf && iocpcf->acceptex_read) {
1754 ls->post_accept_buffer_size = cscf->client_header_buffer_size; 1756 ls->post_accept_buffer_size = cscf->client_header_buffer_size;
1755 } 1757 }
1756 } 1758 }
1757 #endif 1759 #endif
1758 1760