Skip to content
Permalink
Browse files

Fix crash with delayed compression (zlib@openssh.com)

  • Loading branch information
Zenju committed Jan 2, 2020
1 parent f1b6fca commit 6031c1d97ba9e7e01a72fe454e606372b0ca7e23
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/transport.c
@@ -765,7 +765,7 @@ int _libssh2_transport_send(LIBSSH2_SESSION *session,
((session->state & LIBSSH2_STATE_AUTHENTICATED) ||
session->local.comp->use_in_auth);

if(encrypted && compressed) {
if(encrypted && compressed && session->local.comp_abstract) {
/* the idea here is that these function must fail if the output gets
larger than what fits in the assigned buffer so thus they don't
check the input size as we don't know how much it compresses */

0 comments on commit 6031c1d

Please sign in to comment.
You can’t perform that action at this time.