]> git.kaiwu.me - nginx.git/commitdiff
fix segfault if 400 or 414 errors are handled intricately
authorIgor Sysoev <igor@sysoev.ru>
Fri, 24 Jul 2009 19:20:29 +0000 (19:20 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 24 Jul 2009 19:20:29 +0000 (19:20 +0000)
src/http/ngx_http_request.c

index a1e02acaf09b8248faa2a08e57fe2f69b7587b8c..4cd1d8f61c800dc604ed38fe11ae3c066140f2d1 100644 (file)
@@ -384,6 +384,7 @@ ngx_http_init_request(ngx_event_t *rev)
     r->loc_conf = cscf->ctx->loc_conf;
 
     rev->handler = ngx_http_process_request_line;
+    r->read_event_handler = ngx_http_block_reading;
 
 #if (NGX_HTTP_SSL)