Add REQUIREs to dns_xfrin_create()

Two REQUIRE assertions were accidentally deleted by the
dbf230650f commit earlier.
Bring them back.
This commit is contained in:
Aram Sargsyan
2024-11-07 11:44:13 +00:00
committed by Petr Špaček
parent 75f1587aed
commit 53117b2ab3

View 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);