1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Check for output before returning. See #2212

This commit is contained in:
dmiller
2020-12-30 23:31:36 +00:00
parent 1943c0a2fc
commit 9a3a8d1593

View File

@@ -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