BIND 10 #1430: Data source error with mismatched label counts
BIND 10 Development
do-not-reply at isc.org
Mon Nov 28 12:50:15 UTC 2011
#1430: Data source error with mismatched label counts
-------------------------------------+-------------------------------------
Reporter: shane | Owner:
Type: | Status: new
defect | Milestone: New Tasks
Priority: major | Resolution:
Component: | Sensitive: 0
Unclassified | Sub-Project: DNS
Keywords: | Estimated Difficulty: 0
Defect Severity: | Total Hours: 0
Medium |
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by shane):
The following patch fixes the problem:
{{{
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());
}}}
I still need to make a unit test that causes the failure.
--
Ticket URL: <http://bind10.isc.org/ticket/1430#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list