From 2361f50e9ab37a44ef82712e371c256dfc8fab59 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 12 Jul 2009 07:05:00 +0200 Subject: [PATCH] Fix knownhost checking of non-hashed hosts From: Ben Kibbey --- src/knownhost.c | 2 ++ 1 file changed, 2 insertions(+) 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;