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)