BIND 10 trac2539, updated. 86baf211c8a9f1a5ad1498672728f4a15eaa311d [2539] Removed unnecessary assignments
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Jan 31 06:27:29 UTC 2014
The branch, trac2539 has been updated
via 86baf211c8a9f1a5ad1498672728f4a15eaa311d (commit)
from 8885b2d4e06fc897eee4efdace356c1bd29c771c (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 86baf211c8a9f1a5ad1498672728f4a15eaa311d
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Jan 31 11:57:03 2014 +0530
[2539] Removed unnecessary assignments
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/memory/memory_client.cc | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/memory_client.cc b/src/lib/datasrc/memory/memory_client.cc
index 2acd0f1..98fbb57 100644
--- a/src/lib/datasrc/memory/memory_client.cc
+++ b/src/lib/datasrc/memory/memory_client.cc
@@ -122,19 +122,13 @@ public:
"In-memory zone corrupted, missing origin node");
}
- if (!node_) {
- soa_ = ConstRRsetPtr();
- } else {
+ if (node_) {
const RdataSet* origin_set = node_->getData();
- if (!origin_set) {
- soa_ = ConstRRsetPtr();
- } else {
- const RdataSet* soa = RdataSet::find(origin_set, RRType::SOA());
- if (!soa) {
- soa_ = ConstRRsetPtr();
- } else {
+ if (origin_set) {
+ const RdataSet* soa_set = RdataSet::find(origin_set, RRType::SOA());
+ if (soa_set) {
soa_ = ConstRRsetPtr (new TreeNodeRRset(rrclass_, node_,
- soa, true));
+ soa_set, true));
}
}
}
More information about the bind10-changes
mailing list