Commit 97113367 authored by Marcin Siodelski's avatar Marcin Siodelski

[3572] Discard DHCPv4 host options container if it is empty.

This is a small performance improvement.
parent 68202299
......@@ -926,7 +926,7 @@ Dhcpv4Srv::buildCfgOptionList(Dhcpv4Exchange& ex) {
// Firstly, host specific options.
const ConstHostPtr& host = ex.getContext()->host_;
if (host) {
if (host && !host->getCfgOption4()->empty()) {
co_list.push_back(host->getCfgOption4());
}
......
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