diff --git a/scripts/ssh-hostkey.nse b/scripts/ssh-hostkey.nse index a6ab2b021..6b1e9279b 100644 --- a/scripts/ssh-hostkey.nse +++ b/scripts/ssh-hostkey.nse @@ -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