diff --git a/lib/ns/query.c b/lib/ns/query.c index 6e9ed7aad7..6cba28fa7a 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -6478,11 +6478,15 @@ query_checkrpz(query_ctx_t *qctx, isc_result_t result) { */ static isc_result_t query_rpzcname(query_ctx_t *qctx, dns_name_t *cname) { - ns_client_t *client = qctx->client; + ns_client_t *client; dns_fixedname_t prefix, suffix; unsigned int labels; isc_result_t result; + REQUIRE(qctx != NULL && qctx->client != NULL); + + client = qctx->client; + CTRACE(ISC_LOG_DEBUG(3), "query_rpzcname"); labels = dns_name_countlabels(cname);