diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2014-04-21 00:52:01 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2014-04-21 00:52:01 +0000 |
commit | 2a9f926504d94869f66f1b771a14754af574ffba (patch) | |
tree | e60ee6f4007a0053ba3860acd5a80a8174dcde21 /lib/libcrypto/asn1 | |
parent | 25b6a731230b7d3326743c4a007580dc795d7446 (diff) |
fix accidentally deleted deref.
Diffstat (limited to 'lib/libcrypto/asn1')
-rw-r--r-- | lib/libcrypto/asn1/a_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/asn1/a_time.c b/lib/libcrypto/asn1/a_time.c index 080c3dfddb2..8db21636228 100644 --- a/lib/libcrypto/asn1/a_time.c +++ b/lib/libcrypto/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); |