mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 02:30:11 +01:00
settings/ifupdown: fix ifupdown plugin after merging eni_ifaces and connections hashes
The @eni_ifaces hash may now contain %NULL elements. They are only markers for interface names, but are not actual connections. They must be skipped. Fixes:6aa66426a4https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/124 (cherry picked from commit5923a30c43)
This commit is contained in:
parent
e2409b1888
commit
b24e169ded
1 changed files with 4 additions and 2 deletions
|
|
@ -282,8 +282,10 @@ initialize (NMSettingsPlugin *plugin)
|
|||
|
||||
g_hash_table_iter_init (&iter, priv->eni_ifaces);
|
||||
while (g_hash_table_iter_next (&iter, NULL, (gpointer *) conn)) {
|
||||
_nm_settings_plugin_emit_signal_connection_added (NM_SETTINGS_PLUGIN (self),
|
||||
NM_SETTINGS_CONNECTION (conn));
|
||||
if (conn) {
|
||||
_nm_settings_plugin_emit_signal_connection_added (NM_SETTINGS_PLUGIN (self),
|
||||
NM_SETTINGS_CONNECTION (conn));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue