]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2094] (unrelated fix) NSEC's next name shouldn't be compressed per RFC3597.
authorJINMEI Tatuya <jinmei@isc.org>
Thu, 19 Jul 2012 01:39:55 +0000 (18:39 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 19 Jul 2012 01:39:55 +0000 (18:39 -0700)
src/lib/dns/rdata/generic/nsec_47.cc

index aeb6da81a7f409a728cacc526c541beb50225d4d..b21a87d829516720bc40a463d780f355ab030492 100644 (file)
@@ -124,7 +124,9 @@ NSEC::toWire(OutputBuffer& buffer) const {
 
 void
 NSEC::toWire(AbstractMessageRenderer& renderer) const {
-    impl_->nextname_.toWire(renderer);
+    // Type NSEC is not "well-known", and name compression must be disabled
+    // per RFC3597.
+    renderer.writeName(impl_->nextname_, false);
     renderer.writeData(&impl_->typebits_[0], impl_->typebits_.size());
 }