aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-05-10 22:17:29 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-05-10 22:17:29 +0200
commite159f04df899dcf18f376d19a3146b4ba890d35a (patch)
tree5d2f96131dc2637c87e20e5c5915e5b7d8407217 /libssh
parent4a21b6f1689be7f6d11c221e4b4f6392976ddb70 (diff)
downloadlibssh-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.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}