diff --git a/bin/tests/system/xfer/ns4/named.conf.base b/bin/tests/system/xfer/ns4/named.conf.base index 395f80c580..8e77d0cd7d 100644 --- a/bin/tests/system/xfer/ns4/named.conf.base +++ b/bin/tests/system/xfer/ns4/named.conf.base @@ -21,6 +21,7 @@ options { listen-on-v6 { none; }; recursion no; notify yes; + blackhole { none; }; }; key rndc_key { diff --git a/lib/dns/request.c b/lib/dns/request.c index b8248eaf25..b4348e469c 100644 --- a/lib/dns/request.c +++ b/lib/dns/request.c @@ -383,7 +383,7 @@ isblackholed(dns_dispatchmgr_t *dispatchmgr, const isc_sockaddr_t *destaddr) { isc_netaddr_fromsockaddr(&netaddr, destaddr); result = dns_acl_match(&netaddr, NULL, blackhole, NULL, &match, NULL); - if (result != ISC_R_SUCCESS || match == 0) { + if (result != ISC_R_SUCCESS || match <= 0) { return (false); }