From caad5c613d90a11de1db4b93da69fa352a35c226 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 16 Jan 2025 18:05:05 +0100 Subject: [PATCH] fix nil pointer deref (#2339) --- hscontrol/oidc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscontrol/oidc.go b/hscontrol/oidc.go index 8f3003cb..4470ba41 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 }