ipn/ipnlocal: fix read of keyExpired outside mutex

Fixes #12039

Change-Id: I28c8a282ce12619f17103e9535841f15394ce685
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/12033/head
Brad Fitzpatrick 6 months ago committed by Brad Fitzpatrick
parent 21509db121
commit e5ef35857f

@ -2477,9 +2477,10 @@ func (b *LocalBackend) popBrowserAuthNow() {
url := b.authURL
b.interact = false
b.authURL = "" // but NOT clearing authURLSticky
expired := b.keyExpired
b.mu.Unlock()
b.logf("popBrowserAuthNow: url=%v, key-expired=%v, seamless-key-renewal=%v", url != "", b.keyExpired, b.seamlessRenewalEnabled())
b.logf("popBrowserAuthNow: url=%v, key-expired=%v, seamless-key-renewal=%v", url != "", expired, b.seamlessRenewalEnabled())
// Deconfigure the local network data plane if:
// - seamless key renewal is not enabled;

Loading…
Cancel
Save