From 127333c71f69b921f32571ae405600f44f2ffb34 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 17 Apr 2019 00:13:14 +1000 Subject: [PATCH] return rdatasets when processing ANY queries in client_resfind --- lib/dns/client.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/dns/client.c b/lib/dns/client.c index b0698aaa54..700b1c4a90 100644 --- a/lib/dns/client.c +++ b/lib/dns/client.c @@ -1094,6 +1094,12 @@ client_resfind(resctx_t *rctx, dns_fetchevent_t *event) { } } } + if (rctx->rdataset != NULL) { + putrdataset(mctx, &rctx->rdataset); + } + if (rctx->sigrdataset != NULL) { + putrdataset(mctx, &rctx->sigrdataset); + } if (n == 0) { /* * We didn't match any rdatasets (which means