]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use rfc1982LessThanOrEqual rather than rolling our own. NFCI
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 16 Jan 2026 07:20:18 +0000 (08:20 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 16 Jan 2026 07:20:18 +0000 (08:20 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/ixfrdist.cc

index e167554f212ea91569abf502472d8d6f0ba22637..e9824aa7f1dcad8c0275f297de8ef5a646294954 100644 (file)
@@ -925,7 +925,7 @@ static bool handleIXFR(int fd, const MOADNSParser& mdp, const shared_ptr<const S
 
   uint32_t ourLatestSerial = zoneInfo->soa->d_st.serial;
 
-  if (rfc1982LessThan(ourLatestSerial, clientSOA->d_st.serial) || ourLatestSerial == clientSOA->d_st.serial) {
+  if (rfc1982LessThanOrEqual(ourLatestSerial, clientSOA->d_st.serial)) {
     /* RFC 1995 Section 2
      *    If an IXFR query with the same or newer version number than that of
      *    the server is received, it is replied to with a single SOA record of