Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7d616ce

Browse files
committed
Handle Z_BU_F_ERROR in zlib_read
1 parent 24a6193 commit 7d616ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/zpq_stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ zlib_read(ZpqStream *zstream, void *buf, size_t size, size_t *processed)
296296
if (zs->rx.avail_in != 0) /* If there is some data in receiver buffer, then decompress it */
297297
{
298298
rc = inflate(&zs->rx, Z_SYNC_FLUSH);
299-
if (rc != Z_OK)
299+
if (rc != Z_OK && rc != Z_BUF_ERROR)
300300
{
301301
return ZPQ_DECOMPRESS_ERROR;
302302
}

0 commit comments

Comments
 (0)