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

[#1333] Restored empty check

This commit is contained in:
Francis Dupont 2020-07-22 17:35:01 +02:00
parent 1a21fd8c64
commit 7fea76c6c0

View File

@ -398,8 +398,10 @@ CfgSubnets4::selectSubnet(const std::string& iface,
Subnet4Ptr subnet_selected;
// First, try subnet specific interface name.
if ((*subnet)->getIface(Network4::Inheritance::NONE) == iface) {
subnet_selected = (*subnet);
if (!(*subnet)->getIface(Network4::Inheritance::NONE).empty()) {
if ((*subnet)->getIface(Network4::Inheritance::NONE) == iface) {
subnet_selected = (*subnet);
}
} else {
// Interface not specified for a subnet, so let's try if