summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kneschke <jan@kneschke.de>2006-10-03 13:33:35 +0000
committerJan Kneschke <jan@kneschke.de>2006-10-03 13:33:35 +0000
commitd21653c68a66cdfd58580cee8f32560dd8ff6a43 (patch)
tree2b60b88baf06a12651bbb3d53366f5885dc4f077
parent78e5a1d381e44e4b288ff85d5a50e3602ffa45ab (diff)
downloadlighttpd-git-d21653c68a66cdfd58580cee8f32560dd8ff6a43.tar.gz
fixed off-by-one bug when the second CRLF after a HTTP-header is in a second read() call
- fixes #876 git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1352 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r--src/connections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections.c b/src/connections.c
index 9a42c84b..7793c86a 100644
--- a/src/connections.c
+++ b/src/connections.c
@@ -952,7 +952,7 @@ int connection_handle_read_state(server *srv, connection *con) {
0 == strncmp(lookahead_chunk->mem->ptr, "\r\n\r\n" + have_chars, missing_chars)) {
last_chunk = lookahead_chunk;
- last_offset = missing_chars + 1;
+ last_offset = missing_chars;
break;
}