]> 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:12:38 +0000 (11:12 +0200)
commitea443fa9bab02541921d4f35ed58e0a33fafbcc2
tree026ed40ce00444bc5f2ca857bced14b9ce439cdd
parent5c6273200ed57a760d7489bad254a92ac60784b0
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_respond() so that it handles this case properly.
qctx->rdataset is freed later anyway, so there is no need to clean it up
in query_respond().
lib/ns/query.c