]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec and dnsdist: fix a case of potential unaligned header access
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 21 Mar 2023 12:34:35 +0000 (13:34 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 21 Mar 2023 14:31:18 +0000 (15:31 +0100)
commit100ff9c71085c0418f2cced4d2054210af01d1b8
treef23afa5da964d52c6cfde6fec98090f5cabb50ac
parent7afe575c7c3d0b2b2a1b51dbd038100ca74b425c
rec and dnsdist: fix a case of potential unaligned header access

I addded an argument to ageDNSPacket to circumvent having to do it in
two places in rec.

I am also wondering if the break in ageDNSPakcet() is right.
I suspect we want to continue with other records even if we see an OPT
(which does not *have* to be the last as far as I know)
pdns/dnsdist-cache.cc
pdns/dnsparser.cc
pdns/dnsparser.hh
pdns/recursordist/pdns_recursor.cc
pdns/test-dnsparser_cc.cc