summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Riordan <mriordan@ipswitch.com>2011-06-10 16:00:06 -0500
committerAndreas Schneider <asn@cryptomilk.org>2011-08-09 20:13:20 +0200
commit6c45d6dc0196a2846313b588c0e05996813ab3f8 (patch)
tree64d9bacd16f1ac67e5fe7a50e622b60a3d145936
parent9c0af42dd8a4b7a8280e030b6dac8daf79afff40 (diff)
downloadlibssh-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gzip.c b/src/gzip.c
index cfea1e3..97c01e6 100644
--- a/src/gzip.c
+++ b/src/gzip.c
@@ -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);