mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
error: Fix logging in ssh_set_error().
This commit is contained in:
@@ -61,9 +61,11 @@ void _ssh_set_error(void *error,
|
||||
va_end(va);
|
||||
|
||||
err->error.error_code = code;
|
||||
if (ssh_get_log_level() >= SSH_LOG_WARN) {
|
||||
ssh_log_function(SSH_LOG_WARN,
|
||||
function,
|
||||
err->error.error_buffer);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user