2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

get rid of calls to dns_name_countlabels()

This commit is contained in:
Bob Halley
2000-03-29 18:49:36 +00:00
parent dd6132005a
commit a8e4c27d2c

View File

@@ -866,9 +866,10 @@ dns_name_matcheswildcard(dns_name_t *name, dns_name_t *wname) {
dns_name_t tname;
REQUIRE(VALID_NAME(name));
REQUIRE(dns_name_countlabels(name) > 0);
REQUIRE(name->labels > 0);
REQUIRE(VALID_NAME(wname));
REQUIRE((labels = dns_name_countlabels(wname)) > 0);
labels = wname->labels;
REQUIRE(labels > 0);
REQUIRE(dns_name_iswildcard(wname));
dns_name_init(&tname, NULL);