]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add REQUIREs to dns_xfrin_create()
authorAram Sargsyan <aram@isc.org>
Thu, 7 Nov 2024 11:44:13 +0000 (11:44 +0000)
committerPetr Špaček <pspacek@isc.org>
Fri, 15 Nov 2024 13:21:26 +0000 (13:21 +0000)
Two REQUIRE assertions were accidentally deleted by the
dbf230650f74d40fc1e1b45e1445d174802ede1b commit earlier.
Bring them back.

lib/dns/xfrin.c

index 20d6081d48739bc9f664fc248a327b21efe49d5b..4be8dc0f44dc6b8cf4217f4adb0fd53725f2f156 100644 (file)
@@ -879,6 +879,8 @@ dns_xfrin_create(dns_zone_t *zone, dns_rdatatype_t xfrtype,
 
        REQUIRE(xfrp != NULL && *xfrp == NULL);
        REQUIRE(isc_sockaddr_getport(primaryaddr) != 0);
+       REQUIRE(zone != NULL);
+       REQUIRE(dns_zone_getview(zone) != NULL);
 
        loop = dns_zone_getloop(zone);