]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1458] addressed comments
authorRazvan Becheriu <razvan@isc.org>
Mon, 4 Jan 2021 16:09:53 +0000 (18:09 +0200)
committerRazvan Becheriu <razvan@isc.org>
Mon, 4 Jan 2021 17:14:40 +0000 (17:14 +0000)
src/lib/dhcpsrv/host_container.h

index 514010fcd89d95ffea36ef858eb94528a54f3e61..e5fa3c41f687905fa0b580f894b6de6ff380a1b4 100644 (file)
@@ -167,7 +167,7 @@ struct HostResrv6Tuple {
     /// @param resrv IPv6 address/prefix reservation
     /// @param host pointer to the host object
     HostResrv6Tuple(const IPv6Resrv& resrv, const HostPtr& host)
-    :resrv_(resrv), host_(host), subnet_id_(host ? host->getIPv6SubnetID() : 0) {
+    : resrv_(resrv), host_(host), subnet_id_(host ? host->getIPv6SubnetID() : SUBNET_ID_GLOBAL) {
     }
 
     /// @brief Address or prefix reservation.