From: JINMEI Tatuya Date: Thu, 16 Feb 2012 21:08:09 +0000 (-0800) Subject: [1584] trivial editorial fixes to meet the coding guidelines. X-Git-Tag: trac2351_base~247^2^2~6^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=45c762f1a150d2ba1f21ca169642ff6eccd0eb3a;p=thirdparty%2Fkea.git [1584] trivial editorial fixes to meet the coding guidelines. --- diff --git a/src/bin/auth/query.cc b/src/bin/auth/query.cc index 0f68cf7710..88f0017bef 100644 --- a/src/bin/auth/query.cc +++ b/src/bin/auth/query.cc @@ -169,7 +169,7 @@ Query::addNXDOMAINProof(ZoneFinder& finder, ConstRRsetPtr nsec) { void Query::addWildcardProof(ZoneFinder& finder, - const ZoneFinder::FindResult& db_result) + const ZoneFinder::FindResult& db_result) { // The query name shouldn't exist in the zone if there were no wildcard // substitution. Confirm that by specifying NO_WILDCARD. It should result @@ -195,7 +195,7 @@ Query::addWildcardProof(ZoneFinder& finder, response_.addRRset(Message::SECTION_AUTHORITY, boost::const_pointer_cast( NSEC3Result.next_proof), dnssec_); - const Name wname = + const Name wname = qname_.split(qname_.getLabelCount() - NSEC3Result.closest_labels - 1); const ZoneFinder::FindNSEC3Result wresult(finder.findNSEC3(wname, false)); diff --git a/src/bin/auth/query.h b/src/bin/auth/query.h index dfd93f0178..cbe286e85c 100644 --- a/src/bin/auth/query.h +++ b/src/bin/auth/query.h @@ -106,8 +106,9 @@ private: /// Add NSEC RRs that prove a wildcard answer is the best one. /// /// This corresponds to Section 3.1.3.3 of RFC 4035. - void addWildcardProof(isc::datasrc::ZoneFinder& finder, - const isc::datasrc::ZoneFinder::FindResult& dbResult); + void addWildcardProof( + isc::datasrc::ZoneFinder& finder, + const isc::datasrc::ZoneFinder::FindResult& dbResult); /// \brief Adds one NSEC RR proved no matched QNAME,one NSEC RR proved no /// matched through wildcard extension.