mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
add assertions to silence clang false positive
This commit is contained in:
parent
9482d8470b
commit
bed9ad79ba
@ -6478,11 +6478,15 @@ query_checkrpz(query_ctx_t *qctx, isc_result_t result) {
|
|||||||
*/
|
*/
|
||||||
static isc_result_t
|
static isc_result_t
|
||||||
query_rpzcname(query_ctx_t *qctx, dns_name_t *cname) {
|
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;
|
dns_fixedname_t prefix, suffix;
|
||||||
unsigned int labels;
|
unsigned int labels;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
|
REQUIRE(qctx != NULL && qctx->client != NULL);
|
||||||
|
|
||||||
|
client = qctx->client;
|
||||||
|
|
||||||
CTRACE(ISC_LOG_DEBUG(3), "query_rpzcname");
|
CTRACE(ISC_LOG_DEBUG(3), "query_rpzcname");
|
||||||
|
|
||||||
labels = dns_name_countlabels(cname);
|
labels = dns_name_countlabels(cname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user