2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

add assertions to silence clang false positive

This commit is contained in:
Mark Andrews 2019-04-16 15:34:22 +10:00
parent 9482d8470b
commit bed9ad79ba

View File

@ -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);