commit | 2e9ea35fd7e37cb93dc3a63b0d1f54d610dbee95 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Tue Sep 01 12:32:37 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Tue Sep 01 12:32:37 2009 +0000 |
tree | 033b6a9a2dc1d8ae9c4827ae7b7f49ca814400f0 | |
parent | f13a2507ae5a4af37f5e0e2becb3e5b98d46399b [diff] |
fix segfault when a header starts with "\rX" and logging is set to info or debug level
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index fd48fcd..c1fba52 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c
@@ -743,6 +743,7 @@ switch (ch) { case CR: + r->header_name_start = p; r->header_end = p; state = sw_header_almost_done; break;