return rdatasets when processing ANY queries in client_resfind

(cherry picked from commit 127333c71f)
This commit is contained in:
Mark Andrews 2019-04-17 00:13:14 +10:00
parent 9c9b9ab651
commit 2ffdbe9eff

View file

@ -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