summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-07-08 18:02:22 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-07-08 18:07:01 +0200
commitc6106672861f9a188469f7e490cc38af60943a10 (patch)
treef340b8904e222bef2b7c8fb9a05ba45f0a58d465
parentdeba9c4b86e49ff30e568818a72a2f170618d813 (diff)
settings: fix a reversed conditional in have_connection_for_device()
https://bugzilla.redhat.com/show_bug.cgi?id=1727411 Fixes: be0018382d4d ('settings: in have_connection_for_device() first skip over irrelevant connection types')
-rw-r--r--src/settings/nm-settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c
index 6fbda5274b..47866a442a 100644
--- a/src/settings/nm-settings.c
+++ b/src/settings/nm-settings.c
@@ -1505,7 +1505,7 @@ have_connection_for_device (NMSettings *self, NMDevice *device)
continue;
iface = nm_setting_connection_get_interface_name (s_con);
- if (nm_streq0 (iface, nm_device_get_iface (device)))
+ if (!nm_streq0 (iface, nm_device_get_iface (device)))
continue;
s_wired = nm_connection_get_setting_wired (connection);