mirror of
https://github.com/nmap/nmap.git
synced 2025-12-12 02:39:03 +00:00
Fix the expiration test.
The order of the dates was inverted.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user