aboutsummaryrefslogtreecommitdiff
path: root/src/gzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gzip.c')
-rw-r--r--src/gzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gzip.c b/src/gzip.c
index c95bf9d8..cfea1e33 100644
--- a/src/gzip.c
+++ b/src/gzip.c
@@ -103,7 +103,7 @@ static ssh_buffer gzip_compress(ssh_session session,ssh_buffer source,int level)
int compress_buffer(ssh_session session, ssh_buffer buf) {
ssh_buffer dest = NULL;
- dest = gzip_compress(session, buf, 9);
+ dest = gzip_compress(session, buf, session->compressionlevel);
if (dest == NULL) {
return -1;
}