Fix knownhost checking of non-hashed hosts
From: Ben Kibbey <bjk@luxsci.net>
Этот коммит содержится в:
родитель
e5d76b5468
Коммит
2361f50e9a
@ -509,6 +509,8 @@ static int hostline(LIBSSH2_KNOWNHOSTS *hosts,
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!salt)
|
||||||
|
host = orig;
|
||||||
memcpy(hostbuf, host, hostlen);
|
memcpy(hostbuf, host, hostlen);
|
||||||
hostbuf[hostlen]=0;
|
hostbuf[hostlen]=0;
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user