diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-11-12 11:44:36 +0100 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-11-12 11:44:36 +0100 |
commit | c0b4c4d60ce7a7615d49fce4ffbe8a9d53650e76 (patch) | |
tree | 591509f100bcfc1a5731d5771bdfc6c2ba541db8 | |
parent | 12da24c0565d0de234cc89336062b8fd06b583ac (diff) | |
download | libssh-c0b4c4d60ce7a7615d49fce4ffbe8a9d53650e76.tar.gz libssh-c0b4c4d60ce7a7615d49fce4ffbe8a9d53650e76.tar.xz libssh-c0b4c4d60ce7a7615d49fce4ffbe8a9d53650e76.zip |
Fixed setting the log verbosity.
-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 65511d19..b18aa37f 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -555,7 +555,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type, } case SSH_OPTIONS_LOG_VERBOSITY_STR: if (value == NULL) { - session->port = 0 & 0xffff; + session->log_verbosity = 0 & 0xffff; } else { q = strdup(value); if (q == NULL) { @@ -568,7 +568,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type, } SAFE_FREE(q); - session->port = i & 0xffff; + session->log_verbosity = i & 0xffff; } break; case SSH_OPTIONS_CIPHERS_C_S: |