}
auto it = clients_client_id_.find(duid->getDuid());
if (it == clients_client_id_.end()) {
- return (0);
+ return (ClientPtr());
}
return (*it);
}
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);
}
///
/// Lookup the client:
/// - 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
///
/// @param query The query from the client.
}
auto it = clients_.find(duid->getDuid());
if (it == clients_.end()) {
- return (0);
+ return (ClientPtr());
}
return (*it);
}
///
/// Lookup the client:
/// - 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
///
/// @param query The query from the client.