mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
fix coverity issues
3388. [bug] Fixed several Coverity warnings. [RT #30996]
This commit is contained in:
@@ -2970,16 +2970,17 @@ findnsec3proofs(dns_validator_t *val) {
|
||||
setclosest = setnearest = ISC_FALSE;
|
||||
optout = ISC_FALSE;
|
||||
unknown = ISC_FALSE;
|
||||
(void)nsec3noexistnodata(val, val->event->name, name, rdataset,
|
||||
zonename, &exists, &data, &optout,
|
||||
&unknown, setclosestp, &setnearest,
|
||||
closestp, nearest);
|
||||
if (setclosest)
|
||||
proofs[DNS_VALIDATOR_CLOSESTENCLOSER] = name;
|
||||
result = nsec3noexistnodata(val, val->event->name, name,
|
||||
rdataset, zonename, &exists,
|
||||
&data, &optout, &unknown,
|
||||
setclosestp, &setnearest,
|
||||
closestp, nearest);
|
||||
if (unknown)
|
||||
val->attributes |= VALATTR_FOUNDUNKNOWN;
|
||||
if (result != ISC_R_SUCCESS)
|
||||
continue;
|
||||
if (setclosest)
|
||||
proofs[DNS_VALIDATOR_CLOSESTENCLOSER] = name;
|
||||
if (exists && !data && NEEDNODATA(val)) {
|
||||
val->attributes |= VALATTR_FOUNDNODATA;
|
||||
proofs[DNS_VALIDATOR_NODATAPROOF] = name;
|
||||
|
Reference in New Issue
Block a user