From: Bob Halley Date: Sat, 27 Jun 2020 22:34:29 +0000 (-0700) Subject: Use serial number arithmetic in IXFR. X-Git-Tag: v2.0.0rc2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f971636754beee85456b6cd6e5550e894e6aabd6;p=thirdparty%2Fdnspython.git Use serial number arithmetic in IXFR. --- diff --git a/dns/query.py b/dns/query.py index 2a1e7cc7..ae4258a6 100644 --- a/dns/query.py +++ b/dns/query.py @@ -34,6 +34,7 @@ import dns.message import dns.rcode import dns.rdataclass import dns.rdatatype +import dns.serial try: import requests @@ -954,7 +955,7 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN, answer_index = 1 soa_rrset = rrset.copy() if rdtype == dns.rdatatype.IXFR: - if soa_rrset[0].serial <= serial: + if dns.serial.Serial(soa_rrset[0].serial) <= serial: # # We're already up-to-date. #