mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-26 11:32:01 -05:00
The authority section wasn't being marked for caching.
This commit is contained in:
parent
401fc772b1
commit
692cae8634
1 changed files with 3 additions and 0 deletions
|
|
@ -1503,6 +1503,7 @@ answer_response(fetchctx_t *fctx) {
|
|||
* in this section, and we expect that it is not external.
|
||||
*/
|
||||
|
||||
done = ISC_FALSE;
|
||||
result = dns_message_firstname(message, DNS_SECTION_AUTHORITY);
|
||||
while (!done && result == ISC_R_SUCCESS) {
|
||||
name = NULL;
|
||||
|
|
@ -1519,6 +1520,8 @@ answer_response(fetchctx_t *fctx) {
|
|||
if (rdataset->type == dns_rdatatype_ns ||
|
||||
(rdataset->type == dns_rdatatype_sig &&
|
||||
rdataset->covers == dns_rdatatype_ns)) {
|
||||
name->attributes |=
|
||||
DNS_NAMEATTR_CACHE;
|
||||
rdataset->attributes |=
|
||||
DNS_RDATASETATTR_CACHE;
|
||||
if (aa)
|
||||
|
|
|
|||
Loading…
Reference in a new issue