Skip to content

Commit

Permalink
INSIST that the zone in locked before unlocking
Browse files Browse the repository at this point in the history
This is the counterpart to the INSIST(!zone->locked) when the zone
is locked.
  • Loading branch information
marka63 committed Dec 6, 2024
1 parent 6673835 commit aa68651
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dns/zone.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa68651

Please sign in to comment.