]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: gracefully handle with packets with too large RR count
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2020 13:48:13 +0000 (14:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 14 Feb 2021 22:05:28 +0000 (23:05 +0100)
commit18674159ebbf622a9e6e5a45cc36b38f74dae315
tree16b9e609c45e5c4422a0839d09af5602f20f298f
parent8c9c68b593b21c025b330609c4ab8da79013e005
resolved: gracefully handle with packets with too large RR count

Apparently, there are plenty routers in place that report an incorrect
RR count in the packets: they declare more RRs than are actually
included.

Let's accept these responses, but let's downgrade them to baseline, i.e.
let's suppress OPT in this case: if they don't even get the RR count
right, let's operate on the absolute baseline, and not bother with
anything fancier such as EDNS.

Prompted-by: https://github.com/systemd/systemd/issues/12841#issuecomment-724063973
Fixes: #3980
Most likely fixes: #12841
src/resolve/resolved-dns-packet.c