BIND 10 trac488, updated. 1b24dfdd078a3eddf6198d9561ae8bb93803103d [trac488] two minor fixes
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Mar 9 15:29:54 UTC 2011
The branch, trac488 has been updated
via 1b24dfdd078a3eddf6198d9561ae8bb93803103d (commit)
from 447c40bcee5edbd71ee1b3812fa71727b2fdc7a6 (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 1b24dfdd078a3eddf6198d9561ae8bb93803103d
Author: Jelte Jansen <jelte at isc.org>
Date: Wed Mar 9 11:33:36 2011 +0100
[trac488] two minor fixes
make sure cur_zone_ is (re)initialized to ".", and off-by-one in glue selector
-----------------------------------------------------------------------
Summary of changes:
src/lib/nsas/glue_hints.cc | 2 +-
src/lib/resolve/recursive_query.cc | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/nsas/glue_hints.cc b/src/lib/nsas/glue_hints.cc
index 6d6b050..3fc7dc3 100644
--- a/src/lib/nsas/glue_hints.cc
+++ b/src/lib/nsas/glue_hints.cc
@@ -150,7 +150,7 @@ GlueHints::getGlue(AddressFamily family) const {
long int selection = random() % max;
if (family == ANY_OK) {
- if (selection <= v4s) {
+ if (selection < v4s) {
return addresses_v4[selection];
} else {
return addresses_v6[selection-v4s];
diff --git a/src/lib/resolve/recursive_query.cc b/src/lib/resolve/recursive_query.cc
index c8e939d..39d7117 100644
--- a/src/lib/resolve/recursive_query.cc
+++ b/src/lib/resolve/recursive_query.cc
@@ -201,6 +201,7 @@ private:
// if we have a response for our query stored already. if
// so, call handlerecursiveresponse(), if not, we call send()
void doLookup() {
+ cur_zone_ = ".";
dlog("doLookup: try cache");
Message cached_message(Message::RENDER);
isc::resolve::initResponseMessage(question_, cached_message);
@@ -216,7 +217,6 @@ private:
stop();
}
} else {
- cur_zone_ = ".";
send();
}
@@ -436,6 +436,7 @@ public:
callback_called_(false),
nsas_(nsas),
cache_(cache),
+ cur_zone_("."),
nsas_callback_(boost::shared_ptr<ResolverNSASCallback>(
new ResolverNSASCallback(this))),
nsas_callback_out_(false),
More information about the bind10-changes
mailing list