mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
ssh-hostkey: don't print output if no keys found
This commit is contained in:
parent
d88d27f592
commit
d38b46e75c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue