mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Fix the expiration test.
The order of the dates was inverted.
This commit is contained in:
parent
5a45a94d68
commit
04e0bc0f60
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue