]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: when synthesizing stub replies from multiple upstream packet, let's avoid... 18892/head
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Mar 2021 17:20:59 +0000 (18:20 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 6 Mar 2021 13:04:21 +0000 (14:04 +0100)
commit5d7da51ee1d27e86a0487a4b2abc3cfb0ed44c23
tree0513a2ccde113999bae72e40802896b484c92dfd
parentb97fc57178932689bdcb9030e1e2bf299d49ce0b
resolved: when synthesizing stub replies from multiple upstream packet, let's avoid RR duplicates

If we synthesize a stub reply from multiple upstream packet (i.e. a
series of CNAME/DNAME redirects), it might happen that we add the same
RR to a different reply section at a different CNAME/DNAME redirect
chain element. Let's clean this up once we are about to send the reply
message to the client: let's remove sections from "lower-priority"
sections when they are already listed in a "higher-priority" section.
src/resolve/resolved-dns-answer.c
src/resolve/resolved-dns-answer.h
src/resolve/resolved-dns-stub.c