From: Otto Moerbeek Date: Wed, 22 Mar 2023 10:04:13 +0000 (+0100) Subject: Continue processing records after OPT in ageDNSPacket() X-Git-Tag: dnsdist-1.8.0~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12672%2Fhead;p=thirdparty%2Fpdns.git Continue processing records after OPT in ageDNSPacket() --- diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index e726ef24e2..87356a9427 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -949,11 +949,11 @@ void ageDNSPacket(char* packet, size_t length, uint32_t seconds, const dnsheader /* class */ dpm.skipBytes(2); - if (dnstype == QType::OPT) { // not aging that one with a stick - break; + if (dnstype != QType::OPT) { // not aging that one with a stick + dpm.decreaseAndSkip32BitInt(seconds); + } else { + dpm.skipBytes(4); } - - dpm.decreaseAndSkip32BitInt(seconds); dpm.skipRData(); } }