aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/ChangeLog5
-rw-r--r--util/iobuf.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index a79f7c25d..a1dc8763c 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-24 David Shaw <[email protected]>
+
+ * iobuf.c (block_filter): Properly handle a partial body stream
+ that ends with a 5-byte length.
+
2003-12-05 David Shaw <[email protected]>
* http.c (send_request): Add a Host: header for virtual hosts.
diff --git a/util/iobuf.c b/util/iobuf.c
index 11a513fb1..976a96fea 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -665,6 +665,7 @@ block_filter(void *opaque, int control, IOBUF chain, byte *buf, size_t *ret_len)
break;
}
a->size |= c;
+ a->partial = 2;
}
else { /* next partial body length */
a->size = 1 << (c & 0x1f);