]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2843] Addressed review comment
authorMarcin Siodelski <marcin@isc.org>
Tue, 9 May 2023 16:13:02 +0000 (18:13 +0200)
committerMarcin Siodelski <marcin@isc.org>
Fri, 12 May 2023 11:02:03 +0000 (13:02 +0200)
Used IPV6_ZERO_ADDRESS() instead of :: in the candidate addresss
initialization.

src/lib/dhcpsrv/alloc_engine.cc

index 9f1b2f2d15c1565b3ff25984faad5e6daca11b4e..374aa0695f5dfda27682c366c7d886a612afd001 100644 (file)
@@ -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.