aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-12-25 03:20:21 +0000
committerDavid Shaw <[email protected]>2003-12-25 03:20:21 +0000
commite872c35cfa41284c907d58e43b32211b9f313166 (patch)
tree7a5161751a623ac732e8283802e93fc14ee3ec30
parentoops, fixed charset. The just released w32cli binary has been patched (diff)
downloadgnupg-e872c35cfa41284c907d58e43b32211b9f313166.tar.gz
gnupg-e872c35cfa41284c907d58e43b32211b9f313166.zip
* iobuf.c (block_filter): Properly handle a partial body stream that ends
with a 5-byte length.
-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);