]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1550] addressed comments
authorRazvan Becheriu <razvan@isc.org>
Thu, 19 Nov 2020 13:29:38 +0000 (15:29 +0200)
committerRazvan Becheriu <razvan@isc.org>
Thu, 19 Nov 2020 13:29:38 +0000 (15:29 +0200)
src/lib/dhcpsrv/alloc_engine.cc

index 012a24deb83ca2256cf4f540edb32a25c6069955..cab5a5758e45cbfda14a758c9a1e57166949d2b2 100644 (file)
@@ -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);
             }