From f962db12ce3cb46ae61ef3e55ad8369be30447ec Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 19 Jun 2014 06:21:39 -0700 Subject: [PATCH] Fix relativization in RRSIG to_text() --- ChangeLog | 3 +++ dns/rdtypes/ANY/RRSIG.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 57fc87f4..903b5890 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,9 @@ the numeric form of the flags and a set of human-friendly strings. Thanks to Petr Spacek for the patch. + * RRSIGs did not respect relativization settings in to_text(). Thanks + to Brian Smith for reporting the bug and submitting a (slightly different) patch. + 2014-06-18 Bob Halley * dns/rdtypes/IN/APL.py: The APL from_wire() method did not accept an diff --git a/dns/rdtypes/ANY/RRSIG.py b/dns/rdtypes/ANY/RRSIG.py index 63d389cd..98c548df 100644 --- a/dns/rdtypes/ANY/RRSIG.py +++ b/dns/rdtypes/ANY/RRSIG.py @@ -93,7 +93,7 @@ class RRSIG(dns.rdata.Rdata): posixtime_to_sigtime(self.expiration), posixtime_to_sigtime(self.inception), self.key_tag, - self.signer, + self.signer.choose_relativity(origin, relativize), dns.rdata._base64ify(self.signature) ) -- 2.47.3