From b44a9ef7f705949544ff20189406aa1856c5434e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 9 Jan 2019 08:36:48 +0100 Subject: [PATCH] libnm: fix nm_setting_compare() for fuzzy comparison Fixes: b1ebbf4c809c859d1ea94032ce7eb8fbf5e45d40 --- libnm-core/nm-setting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)