mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
INSIST that the zone in locked before unlocking
This is the counterpart to the INSIST(!zone->locked) when the zone is locked.
This commit is contained in:
@@ -193,6 +193,7 @@ typedef struct dns_include dns_include_t;
|
|||||||
} while (0)
|
} while (0)
|
||||||
#define UNLOCK_ZONE(z) \
|
#define UNLOCK_ZONE(z) \
|
||||||
do { \
|
do { \
|
||||||
|
INSIST((z)->locked); \
|
||||||
(z)->locked = false; \
|
(z)->locked = false; \
|
||||||
UNLOCK(&(z)->lock); \
|
UNLOCK(&(z)->lock); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
Reference in New Issue
Block a user