From bbb2de80ed950d18de23f873a7471cb2d201009c Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Thu, 19 Nov 2020 15:29:38 +0200 Subject: [PATCH] [#1550] addressed comments --- src/lib/dhcpsrv/alloc_engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }