1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-12 10:49:02 +00:00

Fix the expiration test.

The order of the dates was inverted.
This commit is contained in:
david
2011-12-19 23:02:59 +00:00
parent 5a45a94d68
commit 04e0bc0f60

View File

@@ -624,7 +624,7 @@ static int read_metadata_file(const char *metadata_filename, struct metadata *me
fprintf(stderr, "Warning: %s:%lu: can't parse date \"%s\".\n",
metadata_filename, cp.lineno, entry.value);
} else {
if (date_is_after(metadata->expiry_date, time(NULL)))
if (date_is_after(time(NULL), metadata->expiry_date))
metadata->is_expired = 1;
}
} else {