Avoid printing null timestamp if scan was skipped. Fixes nmap/nmap#1725

This commit is contained in:
dmiller 2020-05-14 18:11:41 +00:00
parent 069af655eb
commit 4fcc04cce5

View file

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