1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 17:39:03 +00:00

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;