debug override date config option.

git-svn-id: file:///svn/unbound/trunk@505 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-08-09 15:16:25 +00:00
parent 9ada9f1093
commit 5166d65ea2
7 changed files with 60 additions and 4 deletions
+3 -2
View File
@@ -659,9 +659,10 @@ check_dates(struct val_env* ve, uint8_t* expi_p, uint8_t* incep_p)
incep = ntohl(incep);
/* get current date */
if(ve->date_override)
if(ve->date_override) {
now = ve->date_override;
else now = (int32_t)time(0);
verbose(VERB_ALGO, "date override option %d", (int)now);
} else now = (int32_t)time(0);
/* check them */
if(incep - expi > 0) {