From 01ded4bedbd2a0278bb06a9b8223ccaebbf415c2 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Tue, 9 May 2023 18:13:02 +0200 Subject: [PATCH] [#2843] Addressed review comment Used IPV6_ZERO_ADDRESS() instead of :: in the candidate addresss initialization. --- 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 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.