Fix knownhost checking of non-hashed hosts
From: Ben Kibbey <bjk@luxsci.net>
This commit is contained in:
parent
e5d76b5468
commit
2361f50e9a
@ -509,6 +509,8 @@ static int hostline(LIBSSH2_KNOWNHOSTS *hosts,
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (!salt)
|
||||
host = orig;
|
||||
memcpy(hostbuf, host, hostlen);
|
||||
hostbuf[hostlen]=0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user