1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

knownhosts: Fix checking if server is known

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-07-03 09:48:14 +02:00
parent de44fdfd35
commit 2d90bc9d6b

View File

@@ -765,7 +765,10 @@ ssh_known_hosts_check_server_key(const char *hosts_entry,
if (ssh_key_type(server_key) == ssh_key_type(entry->publickey)) { if (ssh_key_type(server_key) == ssh_key_type(entry->publickey)) {
found = SSH_KNOWN_HOSTS_CHANGED; found = SSH_KNOWN_HOSTS_CHANGED;
} else { continue;
}
if (found != SSH_KNOWN_HOSTS_CHANGED) {
found = SSH_KNOWN_HOSTS_OTHER; found = SSH_KNOWN_HOSTS_OTHER;
} }
} }