From d8d04edfba54df9a21ef87d4b0ae63a8e81fae2d Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 20 Feb 2019 11:45:36 +1100 Subject: [PATCH] assert hevent->rdataset is non NULL --- lib/dns/resolver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 184cba1036..cd0c8f84c3 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -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 ||