mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
result could be set incorrectly in validated()
during a recent refactoring of validated(), a line was removed, causing 'result' to be left unchanged. this wasted time continuing to try to validate when a non-recoverable error had occured, and caused the wrong reason to be logged in add_bad().
This commit is contained in:
parent
144d8f4295
commit
70e99bb27a
1 changed files with 2 additions and 2 deletions
|
|
@ -5435,8 +5435,8 @@ validated(void *arg) {
|
|||
FCTXTRACE("validation failed");
|
||||
inc_stats(res, dns_resstatscounter_valfail);
|
||||
fctx->valfail++;
|
||||
fctx->vresult = val->result;
|
||||
if (fctx->vresult != DNS_R_BROKENCHAIN) {
|
||||
result = fctx->vresult = val->result;
|
||||
if (result != DNS_R_BROKENCHAIN) {
|
||||
if (val->rdataset != NULL) {
|
||||
delete_rrset(fctx, val->name, val->type,
|
||||
val->sigrdataset != NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue