From e09d3a8fcdf5077ee3449bd94d27d37b8ba218a1 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 19 Oct 2022 11:58:33 +0200 Subject: [PATCH] dnsdist: Also handle XFR responses with a lower serial than the query MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As suggested by HÃ¥kan Lindqvist (thanks!). --- pdns/dnsdistdist/dnsdist-tcp-downstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/dnsdist-tcp-downstream.cc b/pdns/dnsdistdist/dnsdist-tcp-downstream.cc index ebe795529d..0242841f7f 100644 --- a/pdns/dnsdistdist/dnsdist-tcp-downstream.cc +++ b/pdns/dnsdistdist/dnsdist-tcp-downstream.cc @@ -803,7 +803,7 @@ bool TCPConnectionToBackend::isXFRFinished(const TCPResponse& response, TCPQuery if (query.d_xfrMasterSerial == 0) { // store the first SOA in our client's connection metadata query.d_xfrMasterSerial = serial; - if (query.d_xfrMasterSerial == query.d_xfrQuerySerial) { + if (query.d_xfrMasterSerial <= query.d_xfrQuerySerial) { /* This is the first message with a master SOA: RFC 1995 Section 2: If an IXFR query with the same or newer version number -- 2.47.2