]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
deal with up-to-date
authorBob Halley <halley@dnspython.org>
Thu, 20 Jul 2006 01:51:48 +0000 (01:51 +0000)
committerBob Halley <halley@dnspython.org>
Thu, 20 Jul 2006 01:51:48 +0000 (01:51 +0000)
dns/query.py

index fa79ad8ea15ceb1cced84444bb21555f1f8f715f..66bf946f63e67eefdb003780ffa05e25f70281fe 100644 (file)
@@ -327,6 +327,8 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN,
             if rrset.rdtype != dns.rdatatype.SOA:
                 raise dns.exception.FormError
             soa_rrset = rrset.copy()
+            if soa_rrset.serial == serial:
+                done = True
         #
         # Count the number of origin SOA RRs in this message
         #