Commit 45c762f1 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[1584] trivial editorial fixes to meet the coding guidelines.

parent 77ceb438
...@@ -169,7 +169,7 @@ Query::addNXDOMAINProof(ZoneFinder& finder, ConstRRsetPtr nsec) { ...@@ -169,7 +169,7 @@ Query::addNXDOMAINProof(ZoneFinder& finder, ConstRRsetPtr nsec) {
void void
Query::addWildcardProof(ZoneFinder& finder, 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 // The query name shouldn't exist in the zone if there were no wildcard
// substitution. Confirm that by specifying NO_WILDCARD. It should result // substitution. Confirm that by specifying NO_WILDCARD. It should result
...@@ -195,7 +195,7 @@ Query::addWildcardProof(ZoneFinder& finder, ...@@ -195,7 +195,7 @@ Query::addWildcardProof(ZoneFinder& finder,
response_.addRRset(Message::SECTION_AUTHORITY, response_.addRRset(Message::SECTION_AUTHORITY,
boost::const_pointer_cast<AbstractRRset>( boost::const_pointer_cast<AbstractRRset>(
NSEC3Result.next_proof), dnssec_); NSEC3Result.next_proof), dnssec_);
const Name wname = const Name wname =
qname_.split(qname_.getLabelCount() - NSEC3Result.closest_labels - 1); qname_.split(qname_.getLabelCount() - NSEC3Result.closest_labels - 1);
const ZoneFinder::FindNSEC3Result wresult(finder.findNSEC3(wname, const ZoneFinder::FindNSEC3Result wresult(finder.findNSEC3(wname,
false)); false));
......
...@@ -106,8 +106,9 @@ private: ...@@ -106,8 +106,9 @@ private:
/// Add NSEC RRs that prove a wildcard answer is the best one. /// Add NSEC RRs that prove a wildcard answer is the best one.
/// ///
/// This corresponds to Section 3.1.3.3 of RFC 4035. /// This corresponds to Section 3.1.3.3 of RFC 4035.
void addWildcardProof(isc::datasrc::ZoneFinder& finder, void addWildcardProof(
const isc::datasrc::ZoneFinder::FindResult& dbResult); isc::datasrc::ZoneFinder& finder,
const isc::datasrc::ZoneFinder::FindResult& dbResult);
/// \brief Adds one NSEC RR proved no matched QNAME,one NSEC RR proved no /// \brief Adds one NSEC RR proved no matched QNAME,one NSEC RR proved no
/// matched <QNAME,QTYPE> through wildcard extension. /// matched <QNAME,QTYPE> through wildcard extension.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment