device: clear secrets from applied connection during reapply

The applied connection must have no secrets. It's unclear whether
there are any secrets at this point (possibly). To be sure, clear them.
This commit is contained in:
Thomas Haller
2016-04-30 12:34:17 +02:00
parent ec840b0331
commit b52d25e129

View File

@@ -7503,6 +7503,7 @@ reapply_connection (NMDevice *self,
con_old = applied_clone = nm_simple_connection_new_clone (applied);
con_new = applied;
nm_connection_replace_settings_from_connection (applied, connection);
nm_connection_clear_secrets (applied);
} else
con_old = con_new = applied;