diff options
-rw-r--r-- | src/known_hosts.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/known_hosts.c b/src/known_hosts.c index bef71200..acc88487 100644 --- a/src/known_hosts.c +++ b/src/known_hosts.c @@ -138,13 +138,7 @@ static char **ssh_get_knownhost_line(FILE **file, const char *filename, } *found_type = tokens[1]; - if (tokens[3]) { - if (tokens[4]) { - /* that's never valid */ - tokens_free(tokens); - continue; - } - /* 3 tokens only, not four */ + if (tokens[3] || tokens[4]) { tokens_free(tokens); continue; } |