From aa686512df0ad3cca894e22f13a6eb674ac2f23a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 29 Oct 2024 10:12:20 +1100 Subject: [PATCH] INSIST that the zone in locked before unlocking This is the counterpart to the INSIST(!zone->locked) when the zone is locked. --- lib/dns/zone.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index c1f639f941..e0c186ff8f 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)