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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user