2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 14:35:29 +00:00

[3088] Minor review fixes.

Fixed two missed minor cleanups from the initial review.
This commit is contained in:
Thomas Markwalder
2013-12-17 11:38:47 -05:00
parent 59bd021c72
commit 13d812dc84
2 changed files with 8 additions and 11 deletions

View File

@@ -263,20 +263,17 @@ NameChangeTransaction::addLeaseAddressRdata(dns::RRsetPtr& rrset) {
try { try {
// Manufacture an RData from the lease address then add it to the RR. // Manufacture an RData from the lease address then add it to the RR.
dns::rdata::ConstRdataPtr rdata;
if (ncr_->isV4()) { if (ncr_->isV4()) {
dns::rdata::ConstRdataPtr rdata(new dns::rdata::in:: rdata.reset(new dns::rdata::in::A(ncr_->getIpAddress()));
A(ncr_->getIpAddress()));
rrset->addRdata(rdata);
} else { } else {
dns::rdata::ConstRdataPtr rdata(new dns::rdata::in:: rdata.reset(new dns::rdata::in::AAAA(ncr_->getIpAddress()));
AAAA(ncr_->getIpAddress()));
rrset->addRdata(rdata);
} }
rrset->addRdata(rdata);
} catch (const std::exception& ex) { } catch (const std::exception& ex) {
isc_throw(NameChangeTransactionError, "Cannot add address rdata: " isc_throw(NameChangeTransactionError, "Cannot add address rdata: "
<< ex.what()); << ex.what());
} }
} }
void void

View File

@@ -96,7 +96,7 @@ public:
/// ///
/// This method simulates the completion of a DNSClient send. This allows /// This method simulates the completion of a DNSClient send. This allows
/// the state handler logic devoted to dealing with IO completion to be /// the state handler logic devoted to dealing with IO completion to be
/// fully exercise without requiring any actual IO. The two primary /// fully exercised without requiring any actual IO. The two primary
/// pieces of information gleaned from IO completion are the DNSClient /// pieces of information gleaned from IO completion are the DNSClient
/// status which indicates whether or not the IO exchange was successful /// status which indicates whether or not the IO exchange was successful
/// and the rcode, which indicates the server's reaction to the request. /// and the rcode, which indicates the server's reaction to the request.