diff --git a/src/lib/dhcpsrv/alloc_engine.cc b/src/lib/dhcpsrv/alloc_engine.cc index 012a24deb8..cab5a5758e 100644 --- a/src/lib/dhcpsrv/alloc_engine.cc +++ b/src/lib/dhcpsrv/alloc_engine.cc @@ -3049,7 +3049,7 @@ hasAddressReservation(AllocEngine::ClientContext4& ctx) { auto host = ctx.hosts_.find(SUBNET_ID_GLOBAL); // if we want global + other modes we would need to // return only if true, else continue - if (host != ctx.hosts_.end() && host->second && + if (host != ctx.hosts_.end() && !host->second->getIPv4Reservation().isV4Zero()) { return (true); }