summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-11-18 15:28:59 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2013-11-18 15:29:27 +0100
commitf6443b725a52b40b7ac2b3b8794e949a89218e02 (patch)
tree7b8918095040d387fe96cb802bbc5e7276a7dd63 /src
parentd8ead516de515fd08c30ceb3577192d86e5766df (diff)
downloadlibssh-f6443b725a52b40b7ac2b3b8794e949a89218e02.tar.gz
libssh-f6443b725a52b40b7ac2b3b8794e949a89218e02.tar.xz
libssh-f6443b725a52b40b7ac2b3b8794e949a89218e02.zip
logging: fix server-side logging
Diffstat (limited to 'src')
-rw-r--r--src/options.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/options.c b/src/options.c
index 24d34df4..2a1999b7 100644
--- a/src/options.c
+++ b/src/options.c
@@ -673,6 +673,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type,
}
session->common.log_verbosity = i & 0xffff;
+ ssh_set_log_level(i & 0xffff);
}
break;
case SSH_OPTIONS_CIPHERS_C_S:
@@ -1427,7 +1428,7 @@ int ssh_bind_options_set(ssh_bind sshbind, enum ssh_bind_options_e type,
break;
case SSH_BIND_OPTIONS_LOG_VERBOSITY_STR:
if (value == NULL) {
- sshbind->common.log_verbosity = 0;
+ ssh_set_log_level(0);
} else {
q = strdup(value);
if (q == NULL) {
@@ -1440,7 +1441,7 @@ int ssh_bind_options_set(ssh_bind sshbind, enum ssh_bind_options_e type,
}
SAFE_FREE(q);
- sshbind->common.log_verbosity = i & 0xffff;
+ ssh_set_log_level(i & 0xffff);
}
break;
case SSH_BIND_OPTIONS_DSAKEY: