diff --git a/src/knownhost.c b/src/knownhost.c index 80f869e..409ef29 100644 --- a/src/knownhost.c +++ b/src/knownhost.c @@ -509,6 +509,8 @@ static int hostline(LIBSSH2_KNOWNHOSTS *hosts, return rc; } + if (!salt) + host = orig; memcpy(hostbuf, host, hostlen); hostbuf[hostlen]=0;