BIND 10 master, updated. 81f62344db074bc5eea3aaf3682122fdec6451ad Fix for error where zone has more labels than an NS for the zone. See ticket #1430 for more details. (Ticket pending tests before closing.)

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Nov 28 14:30:56 UTC 2011


The branch, master has been updated
       via  81f62344db074bc5eea3aaf3682122fdec6451ad (commit)
      from  1825a24fe6fcda419cf2cdcd05180aa1b18ca526 (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 81f62344db074bc5eea3aaf3682122fdec6451ad
Author: Shane Kerr <shane at isc.org>
Date:   Mon Nov 28 15:28:05 2011 +0100

    Fix for error where zone has more labels than an NS for the zone.
    See ticket #1430 for more details. (Ticket pending tests before closing.)

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

Summary of changes:
 src/lib/datasrc/database.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/database.cc b/src/lib/datasrc/database.cc
index 1bf93fc..053d4bc 100644
--- a/src/lib/datasrc/database.cc
+++ b/src/lib/datasrc/database.cc
@@ -520,7 +520,7 @@ DatabaseClient::Finder::find(const isc::dns::Name& name,
                 // It's not empty non-terminal. So check for wildcards.
                 // We remove labels one by one and look for the wildcard there.
                 // Go up to first non-empty domain.
-                for (size_t i(1); i <= current_label_count - last_known; ++i) {
+                for (size_t i(1); i + last_known <= current_label_count; ++i) {
                     // Construct the name with *
                     const Name superdomain(name.split(i));
                     const string wildcard("*." + superdomain.toText());




More information about the bind10-changes mailing list