diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-10 22:17:29 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-10 22:17:29 +0200 |
commit | e159f04df899dcf18f376d19a3146b4ba890d35a (patch) | |
tree | 5d2f96131dc2637c87e20e5c5915e5b7d8407217 /libssh | |
parent | 4a21b6f1689be7f6d11c221e4b4f6392976ddb70 (diff) | |
download | libssh-e159f04df899dcf18f376d19a3146b4ba890d35a.tar.gz libssh-e159f04df899dcf18f376d19a3146b4ba890d35a.tar.xz libssh-e159f04df899dcf18f376d19a3146b4ba890d35a.zip |
make compression not mandatory in options_getopt
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/options.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/options.c b/libssh/options.c index eab386d..acba8af 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; } } |