]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
The query refactoring accidentally changed which TSIG MAC for the
authorBob Halley <halley@dnspython.org>
Sat, 28 Jan 2017 13:53:46 +0000 (05:53 -0800)
committerBob Halley <halley@dnspython.org>
Sat, 28 Jan 2017 13:53:46 +0000 (05:53 -0800)
request was passed to TSIG validation, resulting in failed
validations.
[Issue #228]

dns/query.py

index 507b9d2815ee89e477f6d4bc24eb6dde4b9874f8..5087c95af8145c9944a29befa8bbe6b8478b569e 100644 (file)
@@ -303,7 +303,7 @@ def udp(q, where, timeout=None, port=53, af=None, source=None, source_port=0,
         (_, sent_time) = send_udp(s, wire, destination, expiration)
         (r, received_time) = receive_udp(s, destination, expiration,
                                          ignore_unexpected, one_rr_per_rrset,
-                                         q.keyring, q.request_mac)
+                                         q.keyring, q.mac)
     finally:
         if sent_time is None or received_time is None:
             response_time = 0
@@ -462,7 +462,7 @@ def tcp(q, where, timeout=None, port=53, af=None, source=None, source_port=0,
         _connect(s, destination)
         send_tcp(s, wire, expiration)
         (r, received_time) = receive_tcp(s, expiration, one_rr_per_rrset,
-                                         q.keyring, q.request_mac)
+                                         q.keyring, q.mac)
     finally:
         if begin_time is None or received_time is None:
             response_time = 0