mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 21:00:10 +01:00
settings: get_plugin() should return plugin that has all requested capabilities
This bug had no real consequences because we only called
get_plugin() with one capability at a time.
(cherry picked from commit 08b99eea10)
This commit is contained in:
parent
a1df05662a
commit
ca861152b5
1 changed files with 1 additions and 1 deletions
|
|
@ -505,7 +505,7 @@ get_plugin (NMSettings *self, guint32 capability)
|
|||
NMSystemConfigInterfaceCapabilities caps = NM_SYSTEM_CONFIG_INTERFACE_CAP_NONE;
|
||||
|
||||
g_object_get (G_OBJECT (iter->data), NM_SYSTEM_CONFIG_INTERFACE_CAPABILITIES, &caps, NULL);
|
||||
if (caps & capability)
|
||||
if (NM_FLAGS_ALL (caps, capability))
|
||||
return NM_SYSTEM_CONFIG_INTERFACE (iter->data);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue