2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00

[#2843] Addressed review comment

Used IPV6_ZERO_ADDRESS() instead of :: in the candidate addresss
initialization.
This commit is contained in:
Marcin Siodelski
2023-05-09 18:13:02 +02:00
parent 64b902366f
commit 01ded4bedb

View 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.