From a4970f39e39e9eb40a03b29fc0874f42892117df Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 10 Jan 2025 08:36:43 +0100 Subject: [PATCH] fix nil pointer deref Fixes #2332 Signed-off-by: Kristoffer Dalby --- hscontrol/oidc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscontrol/oidc.go b/hscontrol/oidc.go index 8f3003cb1c..4470ba41b9 100644 --- a/hscontrol/oidc.go +++ b/hscontrol/oidc.go @@ -349,7 +349,7 @@ func (a *AuthProviderOIDC) OIDCCallbackHandler( // Neither node nor machine key was found in the state cache meaning // that we could not reauth nor register the node. - http.Error(writer, err.Error(), http.StatusInternalServerError) + http.Error(writer, "login session expired, try again", http.StatusInternalServerError) return }