From: Bob Halley Date: Tue, 6 Oct 2020 17:04:14 +0000 (-0700) Subject: add comment on NSEC downcasing to avoid future confusion X-Git-Tag: v2.1.0rc1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf3e786bbc2369bc69f5e0b37bc2f7e0f563f4c0;p=thirdparty%2Fdnspython.git add comment on NSEC downcasing to avoid future confusion --- diff --git a/dns/rdtypes/ANY/NSEC.py b/dns/rdtypes/ANY/NSEC.py index 45c22f03..dc31f4c4 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)