2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-01 06:25:34 +00:00

[#2347] subnet null check

This commit is contained in:
Andrei Pavel
2022-03-22 22:48:48 +02:00
parent 5610db3c40
commit 0bb95497a8

View File

@@ -2541,7 +2541,7 @@ Dhcpv4Srv::assignLease(Dhcpv4Exchange& ex) {
// Subnet may be modified by the allocation engine, if the initial subnet
// belongs to a shared network.
if (subnet->getID() != ctx->subnet_->getID()) {
if (subnet && ctx->subnet_ && subnet->getID() != ctx->subnet_->getID()) {
SharedNetwork4Ptr network;
subnet->getSharedNetwork(network);
LOG_DEBUG(packet4_logger, DBG_DHCP4_BASIC_DATA, DHCP4_SUBNET_DYNAMICALLY_CHANGED)