From: Bob Halley Date: Thu, 19 Jun 2014 13:21:39 +0000 (-0700) Subject: Fix relativization in RRSIG to_text() X-Git-Tag: v1.12.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f962db12ce3cb46ae61ef3e55ad8369be30447ec;p=thirdparty%2Fdnspython.git Fix relativization in RRSIG to_text() --- 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) )