mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-11 02:50:18 +01:00
settings: fix assertion when updating default wired connection
The connection is expected to have the NM_GENERATED flag, since it has a default wired device. Fixes:d35d3c468a('settings: rework tracking settings connections and settings plugins') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/471 (cherry picked from commit4aefad5673) (cherry picked from commit3951396de7) (cherry picked from commitac89b8f6b7) (cherry picked from commitc92a857538)
This commit is contained in:
parent
a8846619aa
commit
2be3cb89d6
1 changed files with 3 additions and 3 deletions
|
|
@ -2000,10 +2000,10 @@ nm_settings_update_connection (NMSettings *self,
|
|||
*/
|
||||
device = nm_settings_connection_default_wired_get_device (sett_conn);
|
||||
if (device) {
|
||||
|
||||
nm_assert (cur_in_memory);
|
||||
nm_assert (!NM_FLAGS_ANY (nm_settings_connection_get_flags (sett_conn),
|
||||
NM_SETTINGS_CONNECTION_INT_FLAGS_NM_GENERATED
|
||||
| NM_SETTINGS_CONNECTION_INT_FLAGS_VOLATILE));
|
||||
nm_assert (NM_FLAGS_HAS (nm_settings_connection_get_flags (sett_conn),
|
||||
NM_SETTINGS_CONNECTION_INT_FLAGS_NM_GENERATED));
|
||||
|
||||
default_wired_clear_tag (self, device, sett_conn, FALSE);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue