[svn] commit: r875 - /branches/each-ds/src/lib/auth/cpp/data_source.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Feb 19 02:50:44 UTC 2010
Author: each
Date: Fri Feb 19 02:50:43 2010
New Revision: 875
Log:
minor bugfix; it was trying to copy from a potentially null pointer
Modified:
branches/each-ds/src/lib/auth/cpp/data_source.cc
Modified: branches/each-ds/src/lib/auth/cpp/data_source.cc
==============================================================================
--- branches/each-ds/src/lib/auth/cpp/data_source.cc (original)
+++ branches/each-ds/src/lib/auth/cpp/data_source.cc Fri Feb 19 02:50:43 2010
@@ -152,11 +152,11 @@
findClosestEnclosure(match);
const DataSrc* ds = match.bestDataSrc();
const Name* zone = match.closestName();
- task.zone = new Name(*zone);
if (ds == NULL) {
task.flags = NO_SUCH_ZONE;
} else {
+ task.zone = new Name(*zone);
if (task.op == QueryTask::AUTH_QUERY) {
// If this is an authoritative query and there is more than
// one level between the zone name and qname, we need to
More information about the bind10-changes
mailing list