add assertions to silence clang false positive

(cherry picked from commit bed9ad79ba)
This commit is contained in:
Mark Andrews 2019-04-16 15:34:22 +10:00
parent 8af9f59a58
commit ff2c10cced

View file

@ -6480,11 +6480,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);