keyfiles: Fixed possible problem with known_hosts path.
Этот коммит содержится в:
родитель
517e58d3dc
Коммит
421fb2a829
@ -1725,7 +1725,7 @@ int ssh_write_knownhost(ssh_session session) {
|
||||
}
|
||||
|
||||
if (session->knownhosts == NULL) {
|
||||
if (ssh_options_set(session, SSH_OPTIONS_KNOWNHOSTS, NULL) < 0) {
|
||||
if (ssh_options_apply(session) < 0) {
|
||||
ssh_set_error(session, SSH_FATAL, "Can't find a known_hosts file");
|
||||
return -1;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user