From 718920b8ba4e60856e6576f505d352e57c6daf15 Mon Sep 17 00:00:00 2001 From: Yaroslav 'Zorg' Zborovsky Date: Wed, 13 Apr 2022 14:17:27 +0300 Subject: [PATCH] Fix bug with pointer Fix nil pointer issue Fix nil pointer issue --- providers/apple/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/apple/session.go b/providers/apple/session.go index cd4958a80..8f03b5158 100644 --- a/providers/apple/session.go +++ b/providers/apple/session.go @@ -110,7 +110,7 @@ func (s *Session) Authorize(provider goth.Provider, params goth.Params) (string, if !found { return nil, errors.New("could not find matching public key") } - var pubKey *rsa.PublicKey + pubKey := &rsa.PublicKey{} err = selectedKey.Raw(pubKey) if err != nil { return nil, err