aboutsummaryrefslogtreecommitdiffstats
path: root/util/iobuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/iobuf.c')
-rw-r--r--util/iobuf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/iobuf.c b/util/iobuf.c
index 976a96fea..2e74da6ec 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -666,6 +666,12 @@ block_filter(void *opaque, int control, IOBUF chain, byte *buf, size_t *ret_len)
}
a->size |= c;
a->partial = 2;
+ if( !a->size ) {
+ a->eof = 1;
+ if( !n )
+ rc = -1;
+ break;
+ }
}
else { /* next partial body length */
a->size = 1 << (c & 0x1f);