2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

assert hevent->rdataset is non NULL

This commit is contained in:
Mark Andrews
2019-02-20 11:45:36 +11:00
committed by Evan Hunt
parent d27a061fa2
commit d8d04edfba

View File

@@ -5704,6 +5704,7 @@ validated(isc_task_t *task, isc_event_t *event) {
/*
* Negative results must be indicated in event->result.
*/
INSIST(hevent->rdataset != NULL);
if (dns_rdataset_isassociated(hevent->rdataset) &&
NEGATIVE(hevent->rdataset)) {
INSIST(eresult == DNS_R_NCACHENXDOMAIN ||