From 6f4a1dc6bf89e783000641d37db1d153aefc00ad Mon Sep 17 00:00:00 2001 From: Anton Tolchanov Date: Wed, 8 May 2024 06:43:07 +0100 Subject: [PATCH] ipn/ipnlocal: fix another read of keyExpired outside mutex Updates #12039 Signed-off-by: Anton Tolchanov --- ipn/ipnlocal/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 78c9e91a6..e2326e306 100644 --- a/ipn/ipnlocal/local.go +++ b/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() }