summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-04-21 00:52:01 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-04-21 00:52:01 +0000
commitfa5b4f37a10bafa469ee141301c6b3c0be6ddc00 (patch)
tree931453200ba1b94a44ea803590ac233765f0fda2
parent3f2a400f6e211137fd0d7c3600170a7c8f93602f (diff)
fix accidentally deleted deref.
-rw-r--r--lib/libssl/src/crypto/asn1/a_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/asn1/a_time.c b/lib/libssl/src/crypto/asn1/a_time.c
index 080c3dfddb2..8db21636228 100644
--- a/lib/libssl/src/crypto/asn1/a_time.c
+++ b/lib/libssl/src/crypto/asn1/a_time.c
@@ -152,7 +152,7 @@ ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZEDTIME **out)
/* ASN1_STRING_set() allocated 'len + 1' bytes. */
newlen = t->length + 2 + 1;
str = (char *)ret->data;
- i = snprintf(str, newlen, "%s%s", (t->data >= '5') ? "19" : "20",
+ i = snprintf(str, newlen, "%s%s", (t->data[0] >= '5') ? "19" : "20",
(char *) t->data);
if (i == -1 || i >= newlen) {
ASN1_STRING_free(ret);