]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
SuffixMatchTree: add comment on value replacement
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 13 Feb 2019 16:06:04 +0000 (17:06 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 18 Feb 2019 17:43:28 +0000 (18:43 +0100)
pdns/dnsname.hh

index 5c2b6bf0161d2d3a4c74f15f8602f480426a421e..cb69cac88a95b1de860ed9a33bb1c5434365b1fd 100644 (file)
@@ -308,6 +308,9 @@ struct SuffixMatchTree
     if (labels.empty()) {
       // The child is no longer an endnode
       child->endNode = false;
+      // TODO clear d_value for this node as d_value = T() would break for types
+      // that require initialization
+
       // If the child has no further children, just remove it from the set.
       if (child->children.empty()) {
         children.erase(child);