From: Marcin Siodelski Date: Tue, 9 May 2023 16:13:02 +0000 (+0200) Subject: [#2843] Addressed review comment X-Git-Tag: Kea-2.3.8~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01ded4bedbd2a0278bb06a9b8223ccaebbf415c2;p=thirdparty%2Fkea.git [#2843] Addressed review comment Used IPV6_ZERO_ADDRESS() instead of :: in the candidate addresss initialization. --- diff --git a/src/lib/dhcpsrv/alloc_engine.cc b/src/lib/dhcpsrv/alloc_engine.cc index 9f1b2f2d15..374aa0695f 100644 --- a/src/lib/dhcpsrv/alloc_engine.cc +++ b/src/lib/dhcpsrv/alloc_engine.cc @@ -1006,7 +1006,7 @@ AllocEngine::allocateBestMatch(ClientContext6& ctx, ++total_attempts; auto allocator = subnet->getAllocator(ctx.currentIA().type_); - IOAddress candidate("::"); + IOAddress candidate = IOAddress::IPV6_ZERO_ADDRESS(); // The first step is to find out prefix length. It is 128 for // non-PD leases.