Skip to content

Commit

Permalink
Do not make non-fatal errors fatal when parsing PKIX public keys
Browse files Browse the repository at this point in the history
  • Loading branch information
suever authored and complex64 committed Feb 10, 2025
1 parent 6227d7a commit aa43455
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x509/x509.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ func ParsePKIXPublicKey(derBytes []byte) (pub interface{}, err error) {
if err != nil {
return pub, err
}
// Treat non-fatal errors as fatal for this entrypoint.
if len(nfe.Errors) > 0 {
return nil, nfe.Errors[0]
}
return pub, nil
}

Expand Down

0 comments on commit aa43455

Please sign in to comment.