1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-30 05:24:50 +03:00

make compression not mandatory in options_getopt

This commit is contained in:
Aris Adamantiadis 2010-05-10 22:17:29 +02:00
parent 4a21b6f168
commit e159f04df8

View File

@ -789,10 +789,10 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) {
/* set a new option struct */ /* set a new option struct */
if (compress) { 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; 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; cont = 0;
} }
} }