From 67faaa41c9d1a2e4ee503c184952156a81ccb1d2 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 5 Jan 2018 12:36:21 +1100 Subject: [PATCH] test devent->sigrdataset rather than devent->rdataset before calling query_putrdataset --- lib/ns/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ns/query.c b/lib/ns/query.c index c80612ef07..492d716f50 100644 --- a/lib/ns/query.c +++ b/lib/ns/query.c @@ -2372,7 +2372,7 @@ free_devent(ns_client_t *client, isc_event_t **eventp, dns_db_detach(&devent->db); if (devent->rdataset != NULL) query_putrdataset(client, &devent->rdataset); - if (devent->rdataset != NULL) + if (devent->sigrdataset != NULL) query_putrdataset(client, &devent->sigrdataset); /* * If the two pointers are the same then leave the setting of