Commit d40a3b41 authored by Francis Dupont's avatar Francis Dupont
Browse files

[4097a] Added a no subnet check in buildCfgOptionList()

parent 95fd3715
......@@ -827,7 +827,12 @@ Dhcpv4Srv::buildCfgOptionList(Dhcpv4Exchange& ex) {
// First subnet configured options
Subnet4Ptr subnet = ex.getContext()->subnet_;
if (subnet && !subnet->getCfgOption()->empty()) {
if (!subnet) {
// All methods using the CfgOptionList object return soon when
// there is no subnet so do the same
if (!subnet->getCfgOption()->empty()) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment