From 53117b2ab33a8aba7a1dc7faa2de06d7c3b4f683 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Thu, 7 Nov 2024 11:44:13 +0000 Subject: [PATCH] Add REQUIREs to dns_xfrin_create() Two REQUIRE assertions were accidentally deleted by the dbf230650f74d40fc1e1b45e1445d174802ede1b commit earlier. Bring them back. --- lib/dns/xfrin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c index 20d6081d48..4be8dc0f44 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);