diff options
Diffstat (limited to 'util/iobuf.c')
-rw-r--r-- | util/iobuf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/iobuf.c b/util/iobuf.c index bd69322b9..3067ac433 100644 --- a/util/iobuf.c +++ b/util/iobuf.c @@ -893,6 +893,8 @@ iobuf_peek(IOBUF a, byte *buf, unsigned buflen ) { int n=0; + if( a->filter_eof ) + return -1; if( !(a->d.start < a->d.len) ) { if( underflow(a) == -1 ) return -1; |