mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Require to be dereferenced arguments are non-NULL
The function 'dns_dnssec_syncupdate()' is dereferencing arguments 'keys' and 'rmkeys'. There should be a REQUIRE that those are not null pointers.
This commit is contained in:
parent
b1633b71b0
commit
6c76a99c24
@ -2033,6 +2033,8 @@ dns_dnssec_syncupdate(dns_dnsseckeylist_t *keys, dns_dnsseckeylist_t *rmkeys,
|
||||
dns_dnsseckey_t *key;
|
||||
|
||||
REQUIRE(digests != NULL);
|
||||
REQUIRE(keys != NULL);
|
||||
REQUIRE(rmkeys != NULL);
|
||||
|
||||
for (key = ISC_LIST_HEAD(*keys); key != NULL;
|
||||
key = ISC_LIST_NEXT(key, link))
|
||||
|
@ -371,6 +371,8 @@ dns_dnssec_syncupdate(dns_dnsseckeylist_t *keys, dns_dnsseckeylist_t *rmkeys,
|
||||
* Any changes made also cause a dns_difftuple to be added to 'diff'.
|
||||
*
|
||||
* Requires:
|
||||
*\li 'keys' is not NULL.
|
||||
*\li 'rmkeys' is not NULL.
|
||||
*\li 'digests' is not NULL.
|
||||
*
|
||||
* Returns:
|
||||
|
Loading…
x
Reference in New Issue
Block a user