summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-01-09 08:36:48 +0100
committerThomas Haller <thaller@redhat.com>2019-01-10 13:43:51 +0100
commitb44a9ef7f705949544ff20189406aa1856c5434e (patch)
treefc810a32952827074095e4ff89ec7a44c92d66ff
parent46726ecdde724b00ec1864979f3fd62e804b819d (diff)
downloadNetworkManager-b44a9ef7f705949544ff20189406aa1856c5434e.tar.gz
libnm: fix nm_setting_compare() for fuzzy comparison
Fixes: b1ebbf4c809c859d1ea94032ce7eb8fbf5e45d40
-rw-r--r--libnm-core/nm-setting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-core/nm-setting.c b/libnm-core/nm-setting.c
index 4662912a89..aec01a1750 100644
--- a/libnm-core/nm-setting.c
+++ b/libnm-core/nm-setting.c
@@ -1343,7 +1343,7 @@ nm_setting_compare (NMSetting *a,
/* Fuzzy compare ignores secrets and properties defined with the FUZZY_IGNORE flag */
if ( NM_FLAGS_HAS (flags, NM_SETTING_COMPARE_FLAG_FUZZY)
- && !NM_FLAGS_ANY (prop_spec->flags, NM_SETTING_PARAM_FUZZY_IGNORE | NM_SETTING_PARAM_SECRET))
+ && NM_FLAGS_ANY (prop_spec->flags, NM_SETTING_PARAM_FUZZY_IGNORE | NM_SETTING_PARAM_SECRET))
continue;
if ( NM_FLAGS_HAS (flags, NM_SETTING_COMPARE_FLAG_INFERRABLE)