ifupdown: fix connection iterator

Fixes: 6aa66426a4 ('settings/ifupdown: merge eni_ifaces and connections hashes in plugin')

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/145
https://bugzilla.redhat.com/show_bug.cgi?id=1694912
This commit is contained in:
Yupeng Chang 2019-04-02 11:30:29 +02:00 committed by Beniamino Galvani
parent 5b5a768b69
commit 1dd67583e3

View file

@ -280,7 +280,7 @@ initialize (NMSettingsPlugin *plugin)
GHashTableIter iter;
g_hash_table_iter_init (&iter, priv->eni_ifaces);
while (g_hash_table_iter_next (&iter, NULL, (gpointer *) conn)) {
while (g_hash_table_iter_next (&iter, NULL, (gpointer) &conn)) {
if (conn) {
_nm_settings_plugin_emit_signal_connection_added (NM_SETTINGS_PLUGIN (self),
NM_SETTINGS_CONNECTION (conn));