mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +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());
|
||||
if (it == clients_client_id_.end()) {
|
||||
return (0);
|
||||
return (ClientPtr());
|
||||
}
|
||||
return (*it);
|
||||
}
|
||||
@@ -101,7 +101,7 @@ ClientHandler::lookup(const HWAddrPtr& hwaddr) {
|
||||
auto key = boost::make_tuple(hwaddr->htype_, hwaddr->hwaddr_);
|
||||
auto it = clients_hwaddr_.find(key);
|
||||
if (it == clients_hwaddr_.end()) {
|
||||
return (0);
|
||||
return (ClientPtr());
|
||||
}
|
||||
return (*it);
|
||||
}
|
||||
|
@@ -52,7 +52,7 @@ ClientHandler::lookup(const DuidPtr& duid) {
|
||||
}
|
||||
auto it = clients_.find(duid->getDuid());
|
||||
if (it == clients_.end()) {
|
||||
return (0);
|
||||
return (ClientPtr());
|
||||
}
|
||||
return (*it);
|
||||
}
|
||||
|
Reference in New Issue
Block a user