1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

logging: fix server-side logging

This commit is contained in:
Aris Adamantiadis
2013-11-18 15:28:59 +01:00
parent d8ead516de
commit f6443b725a

View File

@@ -673,6 +673,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type,
} }
session->common.log_verbosity = i & 0xffff; session->common.log_verbosity = i & 0xffff;
ssh_set_log_level(i & 0xffff);
} }
break; break;
case SSH_OPTIONS_CIPHERS_C_S: 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; break;
case SSH_BIND_OPTIONS_LOG_VERBOSITY_STR: case SSH_BIND_OPTIONS_LOG_VERBOSITY_STR:
if (value == NULL) { if (value == NULL) {
sshbind->common.log_verbosity = 0; ssh_set_log_level(0);
} else { } else {
q = strdup(value); q = strdup(value);
if (q == NULL) { if (q == NULL) {
@@ -1440,7 +1441,7 @@ int ssh_bind_options_set(ssh_bind sshbind, enum ssh_bind_options_e type,
} }
SAFE_FREE(q); SAFE_FREE(q);
sshbind->common.log_verbosity = i & 0xffff; ssh_set_log_level(i & 0xffff);
} }
break; break;
case SSH_BIND_OPTIONS_DSAKEY: case SSH_BIND_OPTIONS_DSAKEY: