2
0
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:
Francis Dupont
2020-05-21 12:05:49 +02:00
parent 4324ef2078
commit ff3d1fbb96
4 changed files with 5 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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);
}