summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAdam Langley <agl@golang.org>2014-10-09 17:37:40 -0700
committerAdam Langley <agl@golang.org>2014-10-09 17:37:40 -0700
commit8c13bc63d348c5a6ad2188786594cd1bd9e772e5 (patch)
tree287cb6ab2c44efdec53352cf0333cbc85314749a /src/net
parent0fab6a60e66dd7b90ca0ff2e22ab9ee225a5a4e2 (diff)
downloadgo-8c13bc63d348c5a6ad2188786594cd1bd9e772e5.tar.gz
encoding/asn1: fix explicitly tagged Times.
https://codereview.appspot.com/153770043/ tried to fix the case where a implicitly tagged Time, that happened to have the same tag as GENERALIZEDTIME, shouldn't be parsed as a GENERALIZEDTIME. It did so, mistakenly, by testing whether params.tag != nil. But explicitly tagged values also have a non-nil tag and there the inner tag actually does encode the type of the value. This change instead tests whether the tag class is UNIVERSAL before assuming that the tag contains type information. LGTM=iant R=iant CC=golang-codereviews https://codereview.appspot.com/152380044
Diffstat (limited to 'src/net')
0 files changed, 0 insertions, 0 deletions