summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-10-06 10:04:14 -0700
committerBob Halley <halley@dnspython.org>2020-10-06 10:04:14 -0700
commitbf3e786bbc2369bc69f5e0b37bc2f7e0f563f4c0 (patch)
tree4b98fba1cb31d666ba55119e87432a850576fd37
parent923130d6b5412201a5f487496d56e6f9ad09417d (diff)
downloaddnspython-bf3e786bbc2369bc69f5e0b37bc2f7e0f563f4c0.tar.gz
add comment on NSEC downcasing to avoid future confusion
-rw-r--r--dns/rdtypes/ANY/NSEC.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dns/rdtypes/ANY/NSEC.py b/dns/rdtypes/ANY/NSEC.py
index 45c22f0..dc31f4c 100644
--- a/dns/rdtypes/ANY/NSEC.py
+++ b/dns/rdtypes/ANY/NSEC.py
@@ -55,6 +55,8 @@ class NSEC(dns.rdata.Rdata):
return cls(rdclass, rdtype, next, windows)
def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
+ # Note that NSEC downcasing, originally mandated by RFC 4034
+ # section 6.2 was removed by RFC 6840 section 5.1.
self.next.to_wire(file, None, origin, False)
Bitmap(self.windows).to_wire(file)