diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-08-10 14:57:11 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-08-10 14:57:11 +0000 |
commit | ff0945cbdca1b21d1a14e12cfb83a8851845f64e (patch) | |
tree | fcfd4d699b827bb58a734a890fc7abeda038edfd /crypto/asn1 | |
parent | d5ec7d66a8ccd493a45f9ddbf62538bc1708a741 (diff) |
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')
-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. */ |