- Fix that the zone acquired timestamp is set after the

zonefile is read.
This commit is contained in:
W.C.A. Wijngaards 2025-08-22 14:06:51 +02:00
parent 78d9bcacb6
commit f2f36a2733
3 changed files with 7 additions and 2 deletions

View file

@ -3221,10 +3221,13 @@ do_auth_zone_reload(RES* ssl, struct worker* worker, char* arg)
(void)ssl_printf(ssl, "error: no SOA in zone after read %s\n", arg);
return;
}
if(xfr->have_zone)
if(xfr->have_zone) {
xfr->lease_time = *worker->env.now;
xfr->soa_zone_acquired = *worker->env.now;
}
lock_basic_unlock(&xfr->lock);
}
z->soa_zone_acquired = *worker->env.now;
auth_zone_verify_zonemd(z, &worker->env, &worker->env.mesh->mods,
&reason, 0, 0);

View file

@ -2,6 +2,8 @@
- For #1318: Fix compile warnings for DoH compile on windows.
- Fix sha1 enable environment variable in test code on windows.
- Fix #1319: [FR] zone status for Unbound auth-zones.
- Fix that the zone acquired timestamp is set after the
zonefile is read.
21 August 2025: Wouter
- Fix to check for extraneous command arguments for unbound-control,

View file

@ -806,7 +806,7 @@ void auth_xfer_pickup_initial_zone(struct auth_xfer* x,
/**
* Initial pick up of the auth zone, it sets the acquired time.
* @param z: the zone, locked by caller.
* @param z: the zone, write locked by caller.
* @param env: environment of the worker, with current time.
*/
void auth_zone_pickup_initial_zone(struct auth_zone* z,