Skip to content

Commit 7fea76c

Browse files
committed
[#1333] Restored empty check
1 parent 1a21fd8 commit 7fea76c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/dhcpsrv/cfg_subnets4.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,10 @@ CfgSubnets4::selectSubnet(const std::string& iface,
398398
Subnet4Ptr subnet_selected;
399399

400400
// First, try subnet specific interface name.
401-
if ((*subnet)->getIface(Network4::Inheritance::NONE) == iface) {
402-
subnet_selected = (*subnet);
401+
if (!(*subnet)->getIface(Network4::Inheritance::NONE).empty()) {
402+
if ((*subnet)->getIface(Network4::Inheritance::NONE) == iface) {
403+
subnet_selected = (*subnet);
404+
}
403405

404406
} else {
405407
// Interface not specified for a subnet, so let's try if

0 commit comments

Comments
 (0)