diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-09-01 12:32:37 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-09-01 12:32:37 +0000 |
commit | 2e9ea35fd7e37cb93dc3a63b0d1f54d610dbee95 (patch) | |
tree | 033b6a9a2dc1d8ae9c4827ae7b7f49ca814400f0 /src | |
parent | f13a2507ae5a4af37f5e0e2becb3e5b98d46399b (diff) | |
download | nginx-2e9ea35fd7e37cb93dc3a63b0d1f54d610dbee95.tar.gz nginx-2e9ea35fd7e37cb93dc3a63b0d1f54d610dbee95.zip |
fix segfault when a header starts with "\rX"
and logging is set to info or debug level
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index fd48fcdff..c1fba529d 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -743,6 +743,7 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, switch (ch) { case CR: + r->header_name_start = p; r->header_end = p; state = sw_header_almost_done; break; |