commit | c8dbc5afd91d877a293e667a017554e6f8c6681e | [log] [tgz] |
---|---|---|
author | Hansen Kurli <hkurli@google.com> | Tue Nov 14 20:47:29 2023 +0800 |
committer | Hansen Kurli <hkurli@google.com> | Wed Nov 15 16:23:43 2023 +0800 |
tree | b11a96328d23f50fc3d09a81d8c01992a7c059b1 | |
parent | ecf90eb72ee6c1b9db5a0fd564d102ebc4802235 [diff] |
Clone the VpnProfile in startLegacyVpnPrivileged() The profile is modified within startLegacyVpnPrivileged(), e.g. ipsecCaCert, ipsecUserCert. This causes subsequent calls from callers such as LockdownVpnTracker to fail. Make VpnProfile.clone() public and clone the VpnProfile before modifiying it. Bug: 190572822 Bug: 309591931 Test: New test in VpnTest Test: Manual test always-on VPNs Change-Id: I2a8dd03ef7da9b950df54ba993a527eb15272281