diff --git a/lib/dns/qpzone.c b/lib/dns/qpzone.c index 95e0e1b620..e26885f090 100644 --- a/lib/dns/qpzone.c +++ b/lib/dns/qpzone.c @@ -2663,7 +2663,7 @@ find__wildcard(qpz_search_t *search, qpznode_t *snode, qpznode_t **nodep, result = dns_qp_lookup(&search->qpr, name, NULL, &it, NULL, (void **)&node, NULL); - if (result != ISC_R_NOTFOUND && result != DNS_R_PARTIALMATCH) { + if (result != ISC_R_SUCCESS) { return result; }