diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/x509/parser.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/x509/parser.go b/src/crypto/x509/parser.go index 5a1819841d..6695212a0b 100644 --- a/src/crypto/x509/parser.go +++ b/src/crypto/x509/parser.go @@ -342,7 +342,7 @@ func parseBasicConstraintsExtension(der cryptobyte.String) (bool, int, error) { } } maxPathLen := -1 - if !der.Empty() && der.PeekASN1Tag(cryptobyte_asn1.INTEGER) { + if der.PeekASN1Tag(cryptobyte_asn1.INTEGER) { if !der.ReadASN1Integer(&maxPathLen) { return false, 0, errors.New("x509: invalid basic constraints") } |
