From: Mark Andrews Date: Mon, 28 Oct 2024 23:12:20 +0000 (+1100) Subject: INSIST that the zone in locked before unlocking X-Git-Tag: v9.21.4~52^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa686512df0ad3cca894e22f13a6eb674ac2f23a;p=thirdparty%2Fbind9.git INSIST that the zone in locked before unlocking This is the counterpart to the INSIST(!zone->locked) when the zone is locked. --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index c1f639f941b..e0c186ff8fd 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -193,6 +193,7 @@ typedef struct dns_include dns_include_t; } while (0) #define UNLOCK_ZONE(z) \ do { \ + INSIST((z)->locked); \ (z)->locked = false; \ UNLOCK(&(z)->lock); \ } while (0)