mirror of
https://github.com/nmap/nmap.git
synced 2026-02-13 00:46:32 +00:00
ssh-hostkey: don't print output if no keys found
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user