2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00
Files
bind/lib/dns
Michał Kępień 68a004501a Ensure required cached glue is rendered
When looking for required glue, dns_message_rendersection() only
processes the first rdataset associated with the first name added to the
ADDITIONAL section.  If the DNS_RDATASETATTR_REQUIRED attribute is set
for an rdataset which is located somewhere else (i.e. the name it is
associated with is preceded by another name in the ADDITIONAL section),
it will not be honored, i.e. the TC bit will not be set even if the
rdataset does not fit into the response.

Check the attributes of each processed rdataset while appending names to
a referral response based on a glue cache entry.  If a given rdataset is
marked with DNS_RDATASETATTR_REQUIRED, make sure the name it is
associated with is added to the response at the beginning of the
ADDITIONAL section, not its end.

Note that using ISC_LIST_PREPEND() instead of ISC_LIST_APPEND() is not
necessary when associating the rdataset with its owner name because the
dns_name_t structures are initialized just before the glue rdatasets are
associated with them and therefore they are empty at that point, which
means no other (non-required) rdataset can precede the glue rdatasets
within the dns_name_t structure owning them.
2022-09-22 14:03:17 +02:00
..
2022-04-01 23:50:34 +02:00
2022-08-25 17:17:07 +02:00
2022-06-09 10:47:04 +00:00
2022-06-28 11:56:31 +02:00
2022-07-18 13:38:47 +02:00
2022-09-08 11:20:34 +02:00
2022-09-08 11:27:31 +02:00
2022-09-13 12:07:13 +10:00
2022-07-15 10:33:46 +00:00
2022-05-02 19:47:58 +01:00
2022-05-03 00:41:42 +01:00
2022-05-03 12:38:59 +00:00
2022-08-25 17:17:07 +02:00
2022-05-03 12:38:59 +00:00