Browse Source

[trac846] Use correct iterator

It used iterator with different comparator. Glibc stl with debug mode
rejected this while trying to compile it.
Michal 'vorner' Vaner 14 years ago
parent
commit
e5cae84640
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/dns/messagerenderer.cc

+ 3 - 2
src/lib/dns/messagerenderer.cc

@@ -228,8 +228,9 @@ MessageRenderer::writeName(const Name& name, const bool compress) {
     name.toWire(impl_->nbuffer_);
 
     unsigned int i;
-    std::set<NameCompressNode>::const_iterator notfound = impl_->nodeset_.end();
-    std::set<NameCompressNode>::const_iterator n = notfound;
+    std::set<NameCompressNode, NameCompare>::const_iterator notfound =
+        impl_->nodeset_.end();
+    std::set<NameCompressNode, NameCompare>::const_iterator n = notfound;
 
     // Find the longest ancestor name in the rendered set that matches the
     // given name.