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:
committed by
Mark Andrews
parent
406eba0c41
commit
35bd7e4da0
@@ -1389,8 +1389,10 @@ dbiterator_current(dns_dbiterator_t *iterator, dns_dbnode_t **nodep,
|
||||
sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)iterator;
|
||||
|
||||
attachnode(iterator->db, sdlziter->current, nodep);
|
||||
if (name != NULL)
|
||||
return (dns_name_copy(sdlziter->current->name, name, NULL));
|
||||
if (name != NULL) {
|
||||
RUNTIME_CHECK(dns_name_copy(sdlziter->current->name, name, NULL) == ISC_R_SUCCESS);
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
@@ -1403,7 +1405,8 @@ dbiterator_pause(dns_dbiterator_t *iterator) {
|
||||
static isc_result_t
|
||||
dbiterator_origin(dns_dbiterator_t *iterator, dns_name_t *name) {
|
||||
UNUSED(iterator);
|
||||
return (dns_name_copy(dns_rootname, name, NULL));
|
||||
RUNTIME_CHECK(dns_name_copy(dns_rootname, name, NULL) == ISC_R_SUCCESS);
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user