ssh-hostkey: don't print output if no keys found

This commit is contained in:
dmiller 2015-02-06 19:50:24 +00:00
parent d88d27f592
commit d38b46e75c

View file

@ -289,7 +289,7 @@ local function portaction(host, port)
key = ssh2.fetch_host_key( host, port, "ecdsa-sha2-nistp521" )
if key then table.insert( keys, key ) end
if #keys < 0 then
if #keys == 0 then
return nil
end