Browse Source

ipn/ipnlocal: fix another read of keyExpired outside mutex

Updates #12039

Signed-off-by: Anton Tolchanov <[email protected]>
Anton Tolchanov 1 year ago
parent
commit
6f4a1dc6bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ipn/ipnlocal/local.go

+ 1 - 1
ipn/ipnlocal/local.go

@@ -2486,7 +2486,7 @@ func (b *LocalBackend) popBrowserAuthNow() {
 	// Deconfigure the local network data plane if:
 	// - seamless key renewal is not enabled;
 	// - key is expired (in which case tailnet connectivity is down anyway).
-	if !b.seamlessRenewalEnabled() || b.keyExpired {
+	if !b.seamlessRenewalEnabled() || expired {
 		b.blockEngineUpdates(true)
 		b.stopEngineAndWait()
 	}