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:
parent
4a21b6f168
commit
e159f04df8
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user