summaryrefslogtreecommitdiffstats
path: root/libssh/packet.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-16 22:29:22 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-16 22:29:22 +0200
commit7c7096d8f875e9235eab738cb79c71c882615121 (patch)
tree48ef695a4cc1ea6cb4b9296f3b1d8153d545485c /libssh/packet.c
parentfd7b7bc3b537c0410eb9fb5c3e212dc84b63fb3a (diff)
downloadlibssh-7c7096d8f875e9235eab738cb79c71c882615121.tar.gz
libssh-7c7096d8f875e9235eab738cb79c71c882615121.tar.xz
libssh-7c7096d8f875e9235eab738cb79c71c882615121.zip
Limit the size of acceptable compressed packets
Diffstat (limited to 'libssh/packet.c')
-rw-r--r--libssh/packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/packet.c b/libssh/packet.c
index f0a56b1..0952f34 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -192,7 +192,7 @@ static int packet_read2(SSH_SESSION *session) {
#if defined(HAVE_LIBZ) && defined(WITH_LIBZ)
if (session->current_crypto && session->current_crypto->do_compress_in) {
ssh_log(session, SSH_LOG_PACKET, "Decompressing in_buffer ...");
- if (decompress_buffer(session, session->in_buffer) < 0) {
+ if (decompress_buffer(session, session->in_buffer, MAX_PACKET_LEN) < 0) {
goto error;
}
}