From: Aram Sargsyan Date: Thu, 7 Nov 2024 11:44:13 +0000 (+0000) Subject: Add REQUIREs to dns_xfrin_create() X-Git-Tag: v9.21.3~36^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=53117b2ab33a8aba7a1dc7faa2de06d7c3b4f683;p=thirdparty%2Fbind9.git Add REQUIREs to dns_xfrin_create() Two REQUIRE assertions were accidentally deleted by the dbf230650f74d40fc1e1b45e1445d174802ede1b commit earlier. Bring them back. --- diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index 20d6081d487..4be8dc0f44d 100644 --- a/lib/dns/xfrin.c +++ b/lib/dns/xfrin.c @@ -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);