Ensure that we don't attempt an ACL match for answer addresses
when handling a class-CHAOS zone. This is an additional line of
defense for YWH-PGM40640-74.
(cherry picked from commit
e62673c765b52307c800e86f0185fe52b573c145)
}
}
+ /*
+ * deny-answer-address doesn't apply to non-IN classes.
+ */
+ if (rdataset->rdclass != dns_rdataclass_in) {
+ return true;
+ }
+
/*
* Otherwise, search the filter list for a match for each
* address record. If a match is found, the address should be