We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70cee78 commit be7544bCopy full SHA for be7544b
src/crypto/x509/x509.go
@@ -1048,7 +1048,7 @@ func parseCertificate(in *certificate) (*Certificate, error) {
1048
}
1049
1050
case 31:
1051
- // RFC 5280, 4.2.1.14
+ // RFC 5280, 4.2.1.13
1052
1053
// CRLDistributionPoints ::= SEQUENCE SIZE (1..MAX) OF DistributionPoint
1054
//
@@ -1069,6 +1069,11 @@ func parseCertificate(in *certificate) (*Certificate, error) {
1069
1070
1071
for _, dp := range cdp {
1072
+ // Per RFC 5280, 4.2.1.13, one of distributionPoint or cRLIssuer may be empty.
1073
+ if len(dp.DistributionPoint.FullName.Bytes) == 0 {
1074
+ continue
1075
+ }
1076
+
1077
var n asn1.RawValue
1078
if _, err := asn1.Unmarshal(dp.DistributionPoint.FullName.Bytes, &n); err != nil {
1079
return nil, err
0 commit comments