settings: fix a reversed conditional in have_connection_for_device()

https://bugzilla.redhat.com/show_bug.cgi?id=1727411

Fixes: be0018382d ('settings: in have_connection_for_device() first skip over irrelevant connection types')
This commit is contained in:
Lubomir Rintel 2019-07-08 18:02:22 +02:00
parent deba9c4b86
commit c610667286

View file

@ -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);