1
1

Fix knownhost checking of non-hashed hosts

From: Ben Kibbey <bjk@luxsci.net>
Этот коммит содержится в:
Daniel Stenberg 2009-07-12 07:05:00 +02:00
родитель 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;