Commit 5923a30c authored by Thomas Haller's avatar Thomas Haller

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: 6aa66426

#124
parent c032690d
Pipeline #19333 failed with stages
in 58 minutes and 59 seconds
......@@ -281,8 +281,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));
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment