knownhost: Fix DSS keys being detected as unknown.

I missing `else` meant ssh-dss format keys were being re-detected as unknown format.
This commit is contained in:
Alexander Lamaison 2014-03-06 23:10:58 +00:00
parent feab568a7a
commit d145e04443

View File

@ -775,7 +775,7 @@ static int hostline(LIBSSH2_KNOWNHOSTS *hosts,
if (!strncmp(key_type_name, "ssh-dss", key_type_len))
key_type = LIBSSH2_KNOWNHOST_KEY_SSHDSS;
if (!strncmp(key_type_name, "ssh-rsa", key_type_len))
else if (!strncmp(key_type_name, "ssh-rsa", key_type_len))
key_type = LIBSSH2_KNOWNHOST_KEY_SSHRSA;
else
key_type = LIBSSH2_KNOWNHOST_KEY_UNKNOWN;