BIND 10 master, updated. 064e66c1a00c6dfffe252e5e90f7f49f17accb38 Merge branch 'trac2299'

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Feb 6 09:39:27 UTC 2014


The branch, master has been updated
       via  064e66c1a00c6dfffe252e5e90f7f49f17accb38 (commit)
       via  1389ed4357607c17fb2ceb47731841b25e3e876d (commit)
      from  c1b9c0314457a680d7b85a81d794ba5625bca791 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 064e66c1a00c6dfffe252e5e90f7f49f17accb38
Merge: c1b9c03 1389ed4
Author: Mukund Sivaraman <muks at isc.org>
Date:   Thu Feb 6 14:46:09 2014 +0530

    Merge branch 'trac2299'

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/memory/zone_finder.cc |   20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/zone_finder.cc b/src/lib/datasrc/memory/zone_finder.cc
index a6c601b..bf0ec4e 100644
--- a/src/lib/datasrc/memory/zone_finder.cc
+++ b/src/lib/datasrc/memory/zone_finder.cc
@@ -523,21 +523,13 @@ FindNodeResult findNode(const ZoneData& zone_data,
                 return (FindNodeResult(ZoneFinder::NXDOMAIN, nsec_rrset.first,
                                        nsec_rrset.second));
             }
-            uint8_t ls_buf[LabelSequence::MAX_SERIALIZED_LENGTH];
-
-            // Create the wildcard name (i.e. take "*" and extend it
-            // with all node labels down to the wildcard node
-            LabelSequence wildcard_ls(LabelSequence::WILDCARD(), ls_buf);
-            const ZoneNode* extend_with = node;
-            while (extend_with != NULL) {
-                wildcard_ls.extend(extend_with->getLabels(), ls_buf);
-                extend_with = extend_with->getUpperNode();
-            }
 
-            // Clear the node_path so that we don't keep incorrect (NSEC)
-            // context
-            node_path.clear();
-            ZoneTree::Result result = tree.find(wildcard_ls, &node, node_path,
+            // Pass the wildcard label sequence ("*") (which is
+            // non-absolute) and the previous node_path result to this
+            // special shortcut form of find() that searches below from
+            // the node_path.
+            ZoneTree::Result result = tree.find(LabelSequence::WILDCARD(),
+                                                &node, node_path,
                                                 cutCallback, &state);
             // Otherwise, why would the domain_flag::WILD be there if
             // there was no wildcard under it?



More information about the bind10-changes mailing list