mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 23:30:00 -04:00
lib/dns/zone.c: Fix invalid order of DbC checks that could cause dereference before NULL check
This commit is contained in:
parent
6a82289e35
commit
fedfd48a08
1 changed files with 1 additions and 1 deletions
|
|
@ -5507,8 +5507,8 @@ zone_iattach(dns_zone_t *source, dns_zone_t **target) {
|
|||
/*
|
||||
* 'source' locked by caller.
|
||||
*/
|
||||
REQUIRE(LOCKED_ZONE(source));
|
||||
REQUIRE(DNS_ZONE_VALID(source));
|
||||
REQUIRE(LOCKED_ZONE(source));
|
||||
REQUIRE(target != NULL && *target == NULL);
|
||||
INSIST(source->irefs + isc_refcount_current(&source->erefs) > 0);
|
||||
source->irefs++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue