diff options
Diffstat (limited to 'vendor/golang.org/x/crypto/openpgp')
-rw-r--r-- | vendor/golang.org/x/crypto/openpgp/keys.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vendor/golang.org/x/crypto/openpgp/keys.go b/vendor/golang.org/x/crypto/openpgp/keys.go index 68b14c6..744e293 100644 --- a/vendor/golang.org/x/crypto/openpgp/keys.go +++ b/vendor/golang.org/x/crypto/openpgp/keys.go | |||
@@ -325,9 +325,8 @@ func ReadEntity(packets *packet.Reader) (*Entity, error) { | |||
325 | if e.PrivateKey, ok = p.(*packet.PrivateKey); !ok { | 325 | if e.PrivateKey, ok = p.(*packet.PrivateKey); !ok { |
326 | packets.Unread(p) | 326 | packets.Unread(p) |
327 | return nil, errors.StructuralError("first packet was not a public/private key") | 327 | return nil, errors.StructuralError("first packet was not a public/private key") |
328 | } else { | ||
329 | e.PrimaryKey = &e.PrivateKey.PublicKey | ||
330 | } | 328 | } |
329 | e.PrimaryKey = &e.PrivateKey.PublicKey | ||
331 | } | 330 | } |
332 | 331 | ||
333 | if !e.PrimaryKey.PubKeyAlgo.CanSign() { | 332 | if !e.PrimaryKey.PubKeyAlgo.CanSign() { |