From 2b77e83abb101d7dc38565422bb75cca6ef4e073 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 2 May 2016 16:09:28 +0000 Subject: [PATCH] Avoid output when ssl-date fails (e.g. non-STARTTLS SMTP) --- scripts/ssl-date.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ssl-date.nse b/scripts/ssl-date.nse index babe868f0..f178fda5a 100644 --- a/scripts/ssl-date.nse +++ b/scripts/ssl-date.nse @@ -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"