projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6727565
)
PR: 2004
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 10 Aug 2009 14:56:57 +0000
(14:56 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 10 Aug 2009 14:56:57 +0000
(14:56 +0000)
Submitted by: Peter Sylvester <peter.sylvester@edelweb.fr>
Approved by: steve@openssl.org
Handle fractional seconds properly in ASN1_GENERALIZEDTIME_print
crypto/asn1/t_x509.c
patch
|
blob
|
history
diff --git
a/crypto/asn1/t_x509.c
b/crypto/asn1/t_x509.c
index e504d50d50502a731509661ce8558f5f455bde91..e061f2ffadc966e56ef40028f9e52a549040dd0f 100644
(file)
--- 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. */