From 1099f9f6575337a631cd089b8d30eec7ec9ecd17 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 24 Jul 2009 19:20:29 +0000 Subject: [PATCH] fix segfault if 400 or 414 errors are handled intricately --- src/http/ngx_http_request.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index a1e02acaf..4cd1d8f61 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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)