From d7ce446c7dabdef84d535334a3456341c55f6b68 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 13 Jun 2018 18:27:37 +0200 Subject: [PATCH] dnsdist: Pass the correct section to the 'editTTLs' callback --- pdns/dnsparser.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pdns/dnsparser.cc b/pdns/dnsparser.cc index 805600dfc..77ac1b96d 100644 --- a/pdns/dnsparser.cc +++ b/pdns/dnsparser.cc @@ -714,7 +714,7 @@ void editDNSPacketTTL(char* packet, size_t length, std::function= (ntohs(dh->ancount) && n < (ntohs(dh->ancount) + ntohs(dh->nscount)))) { + *seenAuthSOA = true; + } const uint32_t ttl = dpm.get32BitInt(); if (result > ttl) -- 2.40.0