mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 21:29:01 +00:00
Avoid output when ssl-date fails (e.g. non-STARTTLS SMTP)
This commit is contained in:
@@ -194,7 +194,7 @@ action = function(host, port)
|
||||
status, tm = test_time_sample(host, port, reftm)
|
||||
end
|
||||
if not status then
|
||||
return stdnse.format_output(false, "Unable to obtain data from the target")
|
||||
return nil
|
||||
end
|
||||
if status ~= result.ACCEPTED then
|
||||
return {}, "TLS randomness does not represent time"
|
||||
|
||||
Reference in New Issue
Block a user