]> git.ipfire.org Git - thirdparty/bind9.git/commit
Handle DNAME lookup via itself
authorMark Andrews <marka@isc.org>
Mon, 1 Mar 2021 05:46:07 +0000 (16:46 +1100)
committerMichał Kępień <michal@isc.org>
Thu, 29 Apr 2021 09:56:03 +0000 (11:56 +0200)
commitdacfd3fb876e38979ed6078f96a613a791adf16f
tree8600f53cfe8f504919f8d879302bc41ce72564ad
parent44a7cc73b5e0458ff9399e0a2351f3178befc7b6
Handle DNAME lookup via itself

When answering a query, named should never attempt to add the same RRset
to the ANSWER section more than once.  However, such a situation may
arise when chasing DNAME records: one of the DNAME records placed in the
ANSWER section may turn out to be the final answer to a client query,
but there is no way to know that in advance.  Tweak the relevant INSIST
assertion in query_find() so that it handles this case properly.  The
rdataset is freed later anyway, so there is no need to clean it up
immediately.
bin/named/query.c