mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-04 16:05:17 +00:00
[#2347] subnet null check
This commit is contained in:
@@ -2541,7 +2541,7 @@ Dhcpv4Srv::assignLease(Dhcpv4Exchange& ex) {
|
|||||||
|
|
||||||
// Subnet may be modified by the allocation engine, if the initial subnet
|
// Subnet may be modified by the allocation engine, if the initial subnet
|
||||||
// belongs to a shared network.
|
// belongs to a shared network.
|
||||||
if (subnet->getID() != ctx->subnet_->getID()) {
|
if (subnet && ctx->subnet_ && subnet->getID() != ctx->subnet_->getID()) {
|
||||||
SharedNetwork4Ptr network;
|
SharedNetwork4Ptr network;
|
||||||
subnet->getSharedNetwork(network);
|
subnet->getSharedNetwork(network);
|
||||||
LOG_DEBUG(packet4_logger, DBG_DHCP4_BASIC_DATA, DHCP4_SUBNET_DYNAMICALLY_CHANGED)
|
LOG_DEBUG(packet4_logger, DBG_DHCP4_BASIC_DATA, DHCP4_SUBNET_DYNAMICALLY_CHANGED)
|
||||||
|
Reference in New Issue
Block a user