mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
[#1147] Addressed comments
This commit is contained in:
@@ -85,7 +85,7 @@ ClientHandler::lookup(const DuidPtr& duid) {
|
|||||||
}
|
}
|
||||||
auto it = clients_client_id_.find(duid->getDuid());
|
auto it = clients_client_id_.find(duid->getDuid());
|
||||||
if (it == clients_client_id_.end()) {
|
if (it == clients_client_id_.end()) {
|
||||||
return (0);
|
return (ClientPtr());
|
||||||
}
|
}
|
||||||
return (*it);
|
return (*it);
|
||||||
}
|
}
|
||||||
@@ -101,7 +101,7 @@ ClientHandler::lookup(const HWAddrPtr& hwaddr) {
|
|||||||
auto key = boost::make_tuple(hwaddr->htype_, hwaddr->hwaddr_);
|
auto key = boost::make_tuple(hwaddr->htype_, hwaddr->hwaddr_);
|
||||||
auto it = clients_hwaddr_.find(key);
|
auto it = clients_hwaddr_.find(key);
|
||||||
if (it == clients_hwaddr_.end()) {
|
if (it == clients_hwaddr_.end()) {
|
||||||
return (0);
|
return (ClientPtr());
|
||||||
}
|
}
|
||||||
return (*it);
|
return (*it);
|
||||||
}
|
}
|
||||||
|
@@ -51,7 +51,7 @@ public:
|
|||||||
///
|
///
|
||||||
/// Lookup the client:
|
/// Lookup the client:
|
||||||
/// - if not found insert the client in the clients map and return true
|
/// - if not found insert the client in the clients map and return true
|
||||||
/// - if found, if has a continuation put it in the holder,
|
/// - if found, if has a continuation put it in the holder,
|
||||||
/// and return false
|
/// and return false
|
||||||
///
|
///
|
||||||
/// @param query The query from the client.
|
/// @param query The query from the client.
|
||||||
|
@@ -52,7 +52,7 @@ ClientHandler::lookup(const DuidPtr& duid) {
|
|||||||
}
|
}
|
||||||
auto it = clients_.find(duid->getDuid());
|
auto it = clients_.find(duid->getDuid());
|
||||||
if (it == clients_.end()) {
|
if (it == clients_.end()) {
|
||||||
return (0);
|
return (ClientPtr());
|
||||||
}
|
}
|
||||||
return (*it);
|
return (*it);
|
||||||
}
|
}
|
||||||
|
@@ -49,7 +49,7 @@ public:
|
|||||||
///
|
///
|
||||||
/// Lookup the client:
|
/// Lookup the client:
|
||||||
/// - if not found insert the client in the clients map and return true
|
/// - if not found insert the client in the clients map and return true
|
||||||
/// - if found, if has a continuation put it in the holder,
|
/// - if found, if has a continuation put it in the holder,
|
||||||
/// and return false
|
/// and return false
|
||||||
///
|
///
|
||||||
/// @param query The query from the client.
|
/// @param query The query from the client.
|
||||||
|
Reference in New Issue
Block a user