projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
client/server: zlib error code fixup
[fio.git]
/
client.c
diff --git
a/client.c
b/client.c
index f7b050b0253dc2a644898326cce6e50ab4658063..678a62753021035568cec1fb54ac1f23e8d7bcca 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-1000,7
+1000,8
@@
static struct cmd_iolog_pdu *convert_iolog(struct fio_net_cmd *cmd)
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;