]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[65-libyang-config-adaptor] Fixed incorrect empty 65-libyang-config-adaptor 65-libyang-config-translator_base
authorFrancis Dupont <fdupont@isc.org>
Tue, 23 Oct 2018 16:14:16 +0000 (18:14 +0200)
committerFrancis Dupont <fdupont@isc.org>
Tue, 23 Oct 2018 16:14:16 +0000 (18:14 +0200)
src/lib/yang/adaptor_config.cc

index 653691b66e1c001fc41d9323026a75349fa78491..adca8e27b00eaa887ef16c78d002bd3290031c14 100644 (file)
@@ -117,7 +117,7 @@ AdaptorConfig::sharedNetworksAssignID(ConstElementPtr networks,
 
 void
 AdaptorConfig::sanitizePools(ConstElementPtr pools) {
-    if (!pools || !pools->empty()) {
+    if (!pools || pools->empty()) {
         // nothing to do here.
         return;
     }
@@ -132,7 +132,7 @@ AdaptorConfig::sanitizePools(ConstElementPtr pools) {
 
 void
 AdaptorConfig::sanitizePoolsInSubnets(ConstElementPtr subnets) {
-    if (!subnets || !subnets->empty()) {
+    if (!subnets || subnets->empty()) {
         // nothing to do here.
         return;
     }
@@ -514,7 +514,7 @@ AdaptorConfig::sanitizeDatabase(ConstElementPtr dhcp) {
 void
 AdaptorConfig::sanitizeRelaySuppliedOptions(ConstElementPtr dhcp) {
     ConstElementPtr options = dhcp->get("relay-supplied-options");
-    if (!options || options->empty()) {
+    if (!options || !options->empty()) {
         // nothing to do here.
         return;
     }