diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-08-10 14:56:57 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-08-10 14:56:57 +0000 |
commit | e33d290159de019a50ac40f1e33e020ee9c9e70b (patch) | |
tree | 8898ebb7bf88d75f36712fbcb0e24938815f0041 /crypto/asn1/t_x509.c | |
parent | 6727565a84ce174df591317218e1c5934357f732 (diff) | |
download | openssl-e33d290159de019a50ac40f1e33e020ee9c9e70b.tar.gz |
PR: 2004
Submitted by: Peter Sylvester <peter.sylvester@edelweb.fr>
Approved by: steve@openssl.org
Handle fractional seconds properly in ASN1_GENERALIZEDTIME_print
Diffstat (limited to 'crypto/asn1/t_x509.c')
-rw-r--r-- | crypto/asn1/t_x509.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/t_x509.c b/crypto/asn1/t_x509.c index e504d50d50..e061f2ffad 100644 --- a/crypto/asn1/t_x509.c +++ b/crypto/asn1/t_x509.c @@ -376,7 +376,7 @@ int ASN1_GENERALIZEDTIME_print(BIO *bp, const ASN1_GENERALIZEDTIME *tm) { s= (v[12]-'0')*10+(v[13]-'0'); /* Check for fractions of seconds. */ - if (i >= 15 && v[14] == '.') + if (tm->length >= 15 && v[14] == '.') { int l = tm->length; f = &v[14]; /* The decimal point. */ |