From: Razvan Becheriu Date: Thu, 19 Nov 2020 13:29:38 +0000 (+0200) Subject: [#1550] addressed comments X-Git-Tag: Kea-1.9.2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbb2de80ed950d18de23f873a7471cb2d201009c;p=thirdparty%2Fkea.git [#1550] addressed comments --- 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); }