Fix knownhost checking of non-hashed hosts

From: Ben Kibbey <bjk@luxsci.net>
This commit is contained in:
Daniel Stenberg 2009-07-12 07:05:00 +02:00
parent e5d76b5468
commit 2361f50e9a

View File

@ -509,6 +509,8 @@ static int hostline(LIBSSH2_KNOWNHOSTS *hosts,
return rc;
}
if (!salt)
host = orig;
memcpy(hostbuf, host, hostlen);
hostbuf[hostlen]=0;