diff options
author | Mark Riordan <mriordan@ipswitch.com> | 2011-06-10 16:00:06 -0500 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-09 20:13:20 +0200 |
commit | 6c45d6dc0196a2846313b588c0e05996813ab3f8 (patch) | |
tree | 64d9bacd16f1ac67e5fe7a50e622b60a3d145936 | |
parent | 9c0af42dd8a4b7a8280e030b6dac8daf79afff40 (diff) | |
download | libssh-6c45d6dc0196a2846313b588c0e05996813ab3f8.tar.gz libssh-6c45d6dc0196a2846313b588c0e05996813ab3f8.tar.xz libssh-6c45d6dc0196a2846313b588c0e05996813ab3f8.zip |
Fix "status -5 inflating zlib packet"
Signed-off-by: Mark Riordan <mriordan@ipswitch.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/gzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -173,7 +173,7 @@ static ssh_buffer gzip_decompress(ssh_session session, ssh_buffer source, size_t do { zin->avail_out = BLOCKSIZE; status = inflate(zin, Z_PARTIAL_FLUSH); - if (status != Z_OK) { + if (status != Z_OK && status != Z_BUF_ERROR) { ssh_set_error(session, SSH_FATAL, "status %d inflating zlib packet", status); ssh_buffer_free(dest); |