1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00

* iobuf.c (block_filter): Properly handle a partial body stream that ends

with a 5-byte length.
This commit is contained in:
David Shaw 2003-12-25 03:20:21 +00:00
parent 986db050c4
commit e872c35cfa
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-12-24 David Shaw <dshaw@jabberwocky.com>
* iobuf.c (block_filter): Properly handle a partial body stream
that ends with a 5-byte length.
2003-12-05 David Shaw <dshaw@jabberwocky.com>
* http.c (send_request): Add a Host: header for virtual hosts.

View File

@ -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);