1
0
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:
dmiller
2016-05-02 16:09:28 +00:00
parent fb6d2a5567
commit 2b77e83abb

View File

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