From e159f04df899dcf18f376d19a3146b4ba890d35a Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 10 May 2010 22:17:29 +0200 Subject: make compression not mandatory in options_getopt --- libssh/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libssh') diff --git a/libssh/options.c b/libssh/options.c index eab386db..acba8af3 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -789,10 +789,10 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) { /* set a new option struct */ if (compress) { - if (ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "zlib") < 0) { + if (ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "zlib,none") < 0) { cont = 0; } - if (ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "zlib") < 0) { + if (ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "zlib,none") < 0) { cont = 0; } } -- cgit v1.2.3