diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-09-17 22:47:56 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-09-18 21:37:18 +0200 |
commit | dc42a1757fdbbf5b0ffd877649b6cf08b1385420 (patch) | |
tree | 7203b92aa25af19d4be5228f859ea0d416d4baa2 /src/packet.c | |
parent | 7202a26b6ce9dc30a3764ce177337051d5136bcf (diff) | |
download | libssh-dc42a1757fdbbf5b0ffd877649b6cf08b1385420.tar.gz libssh-dc42a1757fdbbf5b0ffd877649b6cf08b1385420.tar.xz libssh-dc42a1757fdbbf5b0ffd877649b6cf08b1385420.zip |
gzip: Fix zlib support.
Diffstat (limited to 'src/packet.c')
-rw-r--r-- | src/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/packet.c b/src/packet.c index 1bfbae1f..33b284a2 100644 --- a/src/packet.c +++ b/src/packet.c @@ -255,7 +255,7 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user) ssh_log(session, SSH_LOG_PACKET, "After padding, %d bytes left in buffer", buffer_get_rest_len(session->in_buffer)); -#if defined(HAVE_LIBZ) && defined(WITH_LIBZ) +#ifdef WITH_LIBZ if (session->current_crypto && session->current_crypto->do_compress_in && buffer_get_rest_len(session->in_buffer)) { @@ -460,7 +460,7 @@ static int packet_send2(ssh_session session) { ssh_log(session, SSH_LOG_PACKET, "Writing on the wire a packet having %u bytes before", currentlen); -#if defined(HAVE_LIBZ) && defined(WITH_LIBZ) +#ifdef WITH_LIBZ if (session->current_crypto && session->current_crypto->do_compress_out && buffer_get_rest_len(session->out_buffer)) { |