mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Check for output before returning. See #2212
This commit is contained in:
parent
1943c0a2fc
commit
9a3a8d1593
1 changed files with 8 additions and 2 deletions
|
|
@ -286,7 +286,11 @@ function action(host, port)
|
|||
local offered_ciphers = registry_get(host, port) or sslv2.test_sslv2(host, port)
|
||||
if not offered_ciphers then
|
||||
output.vulns = report:make_output()
|
||||
return output
|
||||
if (#output > 0) then
|
||||
return output
|
||||
else
|
||||
return nil
|
||||
end
|
||||
end
|
||||
if next(offered_ciphers) then
|
||||
output.ciphers = offered_ciphers
|
||||
|
|
@ -331,5 +335,7 @@ function action(host, port)
|
|||
report:add_vulns(cve_2016_0800)
|
||||
|
||||
output.vulns = report:make_output()
|
||||
return output
|
||||
if (#output > 0) then
|
||||
return output
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue