mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 12:20:00 -04:00
Lock zone when incrementing statistics
dns__zone_stats_increment() requires the zone to be locked. This was not always the case. This commit fixes that.
This commit is contained in:
parent
d3eba4e78f
commit
1a0b419991
1 changed files with 1 additions and 1 deletions
|
|
@ -13485,10 +13485,10 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
|
|||
{
|
||||
/* Accept notify. */
|
||||
} else if (i >= dns_remote_count(&zone->primaries)) {
|
||||
UNLOCK_ZONE(zone);
|
||||
dns_zone_logc(zone, DNS_LOGCATEGORY_XFER_IN, ISC_LOG_INFO,
|
||||
"refused notify from non-primary: %s", fromtext);
|
||||
dns__zone_stats_increment(zone, dns_zonestatscounter_notifyrej);
|
||||
UNLOCK_ZONE(zone);
|
||||
return DNS_R_REFUSED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue