From 4fcc04cce57f316dc42b238d1d41fde4d0f158f8 Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 14 May 2020 18:11:41 +0000 Subject: [PATCH] Avoid printing null timestamp if scan was skipped. Fixes nmap/nmap#1725 --- output.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.cc b/output.cc index 2b28e3d79..3c603649d 100644 --- a/output.cc +++ b/output.cc @@ -647,7 +647,7 @@ void printportoutput(Target *currenths, PortList *plist) { return; } - if (o.verbose > 1 || o.debugging) { + if ((o.verbose > 1 || o.debugging) && currenths->StartTime()) { time_t tm_secs, tm_sece; struct tm tm; int err;