previously, rctx_answer_any() set the ANSWER flag for all
rdatasets in the answer section; it now sets ANSWERSIG for
RRSIG/SIG rdatasets and ANSWER for everything else. this
error didn't cause any harm in the current code, but it
could have led to unexpected behavior in the future.
rctx->aname->attributes.cache = true;
rctx->aname->attributes.answer = true;
- rdataset->attributes.answer = true;
+ if (dns_rdatatype_issig(rdataset->type)) {
+ rdataset->attributes.answersig = true;
+ } else {
+ rdataset->attributes.answer = true;
+ }
rdataset->attributes.cache = true;
rdataset->trust = rctx->trust;
}