commit | 3c547fe0547c924ca5174d9aa36720ddb441480a | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Wed Mar 14 21:53:00 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Mar 14 21:53:00 2012 +0100 |
tree | 73048384b5973612fa08f9bb4de61e5d1ecb3394 | |
parent | 53bd8dbcbf692d1f622d6c9e62284121e710fdc3 [diff] [blame] |
client/server: zlib error code fixup Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/client.c b/client.c index f7b050b..678a627 100644 --- a/client.c +++ b/client.c
@@ -1000,7 +1000,8 @@ stream.avail_out = this_chunk; stream.next_out = p; err = inflate(&stream, Z_NO_FLUSH); - if (err != Z_OK) { + /* may be Z_OK, or Z_STREAM_END */ + if (err < 0) { log_err("fio: inflate error %d\n", err); free(ret); ret = NULL;