mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 02:30:08 +01:00
vpn: clear secrets after successful activation
We're already connected; shouldn't need secrets again but if we do, we'll ask for them again. Fixes an issue where reconnect would use an old one-time-password.
This commit is contained in:
parent
ee2c19a64f
commit
2ec115bb64
1 changed files with 4 additions and 0 deletions
|
|
@ -984,6 +984,10 @@ connection_state_changed (NMVPNConnection *self,
|
|||
case NM_VPN_CONNECTION_STATE_NEED_AUTH:
|
||||
get_existing_secrets (self);
|
||||
break;
|
||||
case NM_VPN_CONNECTION_STATE_ACTIVATED:
|
||||
/* Secrets no longer needed now that we're connected */
|
||||
nm_connection_clear_secrets (priv->connection);
|
||||
break;
|
||||
case NM_VPN_CONNECTION_STATE_DISCONNECTED:
|
||||
case NM_VPN_CONNECTION_STATE_FAILED:
|
||||
if (priv->proxy) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue