From 2ffdbe9eff66223ae3336b9a34b43dd6140782aa 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 (cherry picked from commit 127333c71f69b921f32571ae405600f44f2ffb34) --- lib/dns/client.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/dns/client.c b/lib/dns/client.c index 7e0bceb324..ede85ca516 100644 --- a/lib/dns/client.c +++ b/lib/dns/client.c @@ -1096,6 +1096,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