You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
566 B
15 lines
566 B
2 years ago
|
diff --git a/dns/query.py b/dns/query.py
|
||
|
index bfecd43..19b9fbb 100644
|
||
|
--- a/dns/query.py
|
||
|
+++ b/dns/query.py
|
||
|
@@ -467,7 +467,8 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN,
|
||
|
first = True
|
||
|
while not done:
|
||
|
mexpiration = _compute_expiration(timeout)
|
||
|
- if mexpiration is None or mexpiration > expiration:
|
||
|
+ if mexpiration is None or \
|
||
|
+ (expiration is not None and mexpiration > expiration):
|
||
|
mexpiration = expiration
|
||
|
if use_udp:
|
||
|
_wait_for_readable(s, expiration)
|