summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2014-06-19 06:21:39 -0700
committerBob Halley <halley@dnspython.org>2014-06-19 06:21:39 -0700
commitf962db12ce3cb46ae61ef3e55ad8369be30447ec (patch)
treede18c214f759eca52cda19bf9bda408ceaff8a44
parenta00c285ebc0b3a89494926cba281f68dd56d09c9 (diff)
downloaddnspython-f962db12ce3cb46ae61ef3e55ad8369be30447ec.tar.gz
Fix relativization in RRSIG to_text()
-rw-r--r--ChangeLog3
-rw-r--r--dns/rdtypes/ANY/RRSIG.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 57fc87f..903b589 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 <halley@dnspython.org>
* 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 63d389c..98c548d 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)
)