]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix dns.message.use_tsig().
authorBrian Wellington <bwelling@xbill.org>
Mon, 10 Aug 2020 18:41:22 +0000 (11:41 -0700)
committerBrian Wellington <bwelling@xbill.org>
Mon, 10 Aug 2020 18:41:22 +0000 (11:41 -0700)
commit8ac073718d44c79e4a34efd9894966d4e6f032a9
treebc796b9c2a228cf23f314df876cfc1a67efc6c89
parent26fd19690c44a01c84c27a2d4244d2e5dc7b7a19
Fix dns.message.use_tsig().

Passing only a dns.tsig.Key to dns.message.use_tsig() didn't work, as
the placeholder tsig rrset on the message object was created with None
as its name, not the name associated with the key.

Also do a bit of refactoring to make the code more clear.
dns/message.py