]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
assert hevent->rdataset is non NULL
authorMark Andrews <marka@isc.org>
Wed, 20 Feb 2019 00:45:36 +0000 (11:45 +1100)
committerEvan Hunt <each@isc.org>
Thu, 14 Mar 2019 19:47:53 +0000 (12:47 -0700)
lib/dns/resolver.c

index 184cba1036e61e3d197c05ba04ef63a0c98d064f..cd0c8f84c33625a71ddbb54d53bfddef28b833e4 100644 (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 ||