From: Razvan Becheriu Date: Thu, 15 Oct 2020 10:30:28 +0000 (+0300) Subject: [#1405] fixed compilation X-Git-Tag: Kea-1.9.2~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8b440feabc15425cbc82725bcb99cfce1c6a355;p=thirdparty%2Fkea.git [#1405] fixed compilation --- diff --git a/src/lib/dhcpsrv/parsers/base_network_parser.cc b/src/lib/dhcpsrv/parsers/base_network_parser.cc index eb4b0e7020..a9556faddb 100644 --- a/src/lib/dhcpsrv/parsers/base_network_parser.cc +++ b/src/lib/dhcpsrv/parsers/base_network_parser.cc @@ -204,15 +204,15 @@ BaseNetworkParser::parseHostReservationMode(const data::ConstElementPtr& network if (network_data->contains("reservation-mode")) { bool found = false; if (network_data->contains("reservations-out-of-pool")) { - found = true + found = true; } if (network_data->contains("reservations-in-subnet")) { - found = true + found = true; } if (network_data->contains("reservations-global")) { - found = true + found = true; } - if (found) + if (found) { isc_throw(DhcpConfigError, "invalid use of both 'reservation-mode'" " and one of 'reservations-out-of-pool'" " , 'reservations-in-subnet' or" @@ -235,15 +235,15 @@ BaseNetworkParser::parseHostReservationModes(const data::ConstElementPtr& networ if (network_data->contains("reservation-modes")) { bool found = false; if (network_data->contains("reservations-out-of-pool")) { - found = true + found = true; } if (network_data->contains("reservations-in-subnet")) { - found = true + found = true; } if (network_data->contains("reservations-global")) { - found = true + found = true; } - if (found) + if (found) { isc_throw(DhcpConfigError, "invalid use of both 'reservation-mode'" " and one of 'reservations-out-of-pool'" " , 'reservations-in-subnet' or"