Commit 4286ea60 authored by Wayne Davison's avatar Wayne Davison

Don't die if inflate() returns Z_BUF_ERROR in see_deflate_token().

parent 626b5ae8
...@@ -598,7 +598,7 @@ static void see_deflate_token(char *buf, int32 len) ...@@ -598,7 +598,7 @@ static void see_deflate_token(char *buf, int32 len)
rx_strm.next_out = (Bytef *)dbuf; rx_strm.next_out = (Bytef *)dbuf;
rx_strm.avail_out = AVAIL_OUT_SIZE(CHUNK_SIZE); rx_strm.avail_out = AVAIL_OUT_SIZE(CHUNK_SIZE);
r = inflate(&rx_strm, Z_SYNC_FLUSH); r = inflate(&rx_strm, Z_SYNC_FLUSH);
if (r != Z_OK) { if (r != Z_OK && r != Z_BUF_ERROR) {
rprintf(FERROR, "inflate (token) returned %d\n", r); rprintf(FERROR, "inflate (token) returned %d\n", r);
exit_cleanup(RERR_STREAMIO); exit_cleanup(RERR_STREAMIO);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment