2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Add RUNTIME_CHECK() around plain dns_name_copy(..., NULL) calls using spatch

This commit add RUNTIME_CHECK() around all simple dns_name_copy() calls where
the third argument is NULL using the semantic patch from the previous commit.
This commit is contained in:
Ondřej Surý
2019-09-10 13:16:48 +02:00
committed by Mark Andrews
parent 406eba0c41
commit 35bd7e4da0
23 changed files with 76 additions and 77 deletions

View File

@@ -885,9 +885,7 @@ make_log_buf(dns_rrl_t *rrl, dns_rrl_entry_t *e,
e->log_qname = qbuf->index;
qbuf->e = e;
dns_fixedname_init(&qbuf->qname);
dns_name_copy(qname,
dns_fixedname_name(&qbuf->qname),
NULL);
RUNTIME_CHECK(dns_name_copy(qname, dns_fixedname_name(&qbuf->qname), NULL) == ISC_R_SUCCESS);
}
}
if (qbuf != NULL)