]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1449] Addressed ultimate comment
authorFrancis Dupont <fdupont@isc.org>
Wed, 2 Dec 2020 15:24:05 +0000 (16:24 +0100)
committerFrancis Dupont <fdupont@isc.org>
Wed, 2 Dec 2020 15:24:05 +0000 (16:24 +0100)
src/bin/dhcp4/dhcp4_srv.cc

index aaf21d767d044e74215a579c05cc70c75c11f659..8a59716582bc4b34921cfa2c6c23ff3781861658 100644 (file)
@@ -1869,12 +1869,12 @@ Dhcpv4Srv::appendRequestedVendorOptions(Dhcpv4Exchange& ex) {
                 }
             }
         }
+    }
 
-        // If we added some sub-options and the vivso option is not in
-        // the response already, then add it.
-        if (added && !ex.getResponse()->getOption(DHO_VIVSO_SUBOPTIONS)) {
-            ex.getResponse()->addOption(vendor_rsp);
-        }
+    // If we added some sub-options and the vivso option is not in
+    // the response already, then add it.
+    if (added && !ex.getResponse()->getOption(DHO_VIVSO_SUBOPTIONS)) {
+        ex.getResponse()->addOption(vendor_rsp);
     }
 }