fix nil pointer deref (#2339)

This commit is contained in:
Kristoffer Dalby 2025-01-16 18:05:05 +01:00 committed by GitHub
parent 38aef77e54
commit caad5c613d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -349,7 +349,7 @@ func (a *AuthProviderOIDC) OIDCCallbackHandler(
// Neither node nor machine key was found in the state cache meaning // Neither node nor machine key was found in the state cache meaning
// that we could not reauth nor register the node. // 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 return
} }