]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1405] fixed compilation
authorRazvan Becheriu <razvan@isc.org>
Thu, 15 Oct 2020 10:30:28 +0000 (13:30 +0300)
committerRazvan Becheriu <razvan@isc.org>
Wed, 18 Nov 2020 13:55:22 +0000 (15:55 +0200)
src/lib/dhcpsrv/parsers/base_network_parser.cc

index eb4b0e70205aff0d52549323b43f32323d370c6b..a9556faddb9fcf46b9369769db401ea69fe4f94d 100644 (file)
@@ -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"