ifcfg-rh: don't chain up after failure of replace_and_commit()

If replace_and_commit() found existing route files (and the callback
has potentially already been invoked), it is wrong to chain up to
parent class and continue the update.

Fixes: f79d62692e
This commit is contained in:
Beniamino Galvani 2016-03-30 17:44:46 +02:00
parent 5f83ef9925
commit 1422ce0a6a

View file

@ -369,6 +369,7 @@ replace_and_commit (NMSettingsConnection *connection,
callback (connection, error, user_data);
g_clear_error (&error);
}
return;
}
NM_SETTINGS_CONNECTION_CLASS (nm_ifcfg_connection_parent_class)->replace_and_commit (connection, new_connection, callback, user_data);