mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch '2720-threadsanitizer-data-race-lib-isc-unix-time-c-110-in-isc_time_isepoch' into 'main'
Resolve "ThreadSanitizer: data race lib/isc/unix/time.c:110 in isc_time_isepoch" Closes #2720 See merge request isc-projects/bind9!5124
This commit is contained in:
commit
efacee3d09
1 changed files with 2 additions and 0 deletions
|
|
@ -6479,6 +6479,7 @@ set_key_expiry_warning(dns_zone_t *zone, isc_stdtime_t when,
|
|||
unsigned int delta;
|
||||
char timebuf[80];
|
||||
|
||||
LOCK_ZONE(zone);
|
||||
zone->key_expiry = when;
|
||||
if (when <= now) {
|
||||
dns_zone_log(zone, ISC_LOG_ERROR,
|
||||
|
|
@ -6502,6 +6503,7 @@ set_key_expiry_warning(dns_zone_t *zone, isc_stdtime_t when,
|
|||
dns_zone_log(zone, ISC_LOG_NOTICE, "setting keywarntime to %s",
|
||||
timebuf);
|
||||
}
|
||||
UNLOCK_ZONE(zone);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue