mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-21 21:09:07 +02:00
[client] pqkem: drop the previous PSKs on Stop
They are WireGuard key material like the current ones, which Stop already clears, and nothing reads them after shutdown.
This commit is contained in:
@@ -335,6 +335,7 @@ func (m *Manager) Stop() {
|
||||
m.mu.Lock()
|
||||
m.exchanges = make(map[RemoteID]*exchangeCtl)
|
||||
m.psks = make(map[RemoteID]PSK)
|
||||
m.prevPSKs = make(map[RemoteID]PSK)
|
||||
m.mu.Unlock()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user