diff options
| author | Brian Wellington <bwelling@xbill.org> | 2020-06-30 09:27:06 -0700 |
|---|---|---|
| committer | Brian Wellington <bwelling@xbill.org> | 2020-06-30 09:27:06 -0700 |
| commit | bfdcb567502dcb1e4de443479547a2e26a4547f7 (patch) | |
| tree | cd69841b0e3a6f44453a84695531103d6ed1296e /dns/query.py | |
| parent | 5cb19a0d0f09aa8746f7116528948d697ebcb9d5 (diff) | |
| download | dnspython-bfdcb567502dcb1e4de443479547a2e26a4547f7.tar.gz | |
Remove the concept from "first" from TSIG.
The sign() and validate() routines took a "first" parameter, which
indicated that this message was the first in a multi-message sequence.
This isn't needed, as it's identical to "not (ctx and multi)".
Remove the parameter from both, as well as the now-unneeded field in the
message object and message.from_wire() parameter.
Diffstat (limited to 'dns/query.py')
| -rw-r--r-- | dns/query.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dns/query.py b/dns/query.py index ae4258a..3404b91 100644 --- a/dns/query.py +++ b/dns/query.py @@ -920,7 +920,6 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN, origin = None oname = zone tsig_ctx = None - first = True while not done: (_, mexpiration) = _compute_times(timeout) if mexpiration is None or \ @@ -937,13 +936,11 @@ def xfr(where, zone, rdtype=dns.rdatatype.AXFR, rdclass=dns.rdataclass.IN, r = dns.message.from_wire(wire, keyring=q.keyring, request_mac=q.mac, xfr=True, origin=origin, tsig_ctx=tsig_ctx, - multi=True, first=first, - one_rr_per_rrset=is_ixfr) + multi=True, one_rr_per_rrset=is_ixfr) rcode = r.rcode() if rcode != dns.rcode.NOERROR: raise TransferError(rcode) tsig_ctx = r.tsig_ctx - first = False answer_index = 0 if soa_rrset is None: if not r.answer or r.answer[0].name != oname: |
