projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix regression in ASN1_UTCTIME_cmp_time_t
[openssl.git]
/
crypto
/
asn1
/
a_utctm.c
diff --git
a/crypto/asn1/a_utctm.c
b/crypto/asn1/a_utctm.c
index 9b552849f028bc0805046beb7cbcd8023801f342..e56cbbcb1e54f61d0f4fcd6557d79611c33a5117 100644
(file)
--- a/
crypto/asn1/a_utctm.c
+++ b/
crypto/asn1/a_utctm.c
@@
-249,7
+249,7
@@
int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t)
if (!OPENSSL_gmtime(&t, &ttm))
return -2;
- if (!OPENSSL_gmtime_diff(&day, &sec, &
stm, &t
tm))
+ if (!OPENSSL_gmtime_diff(&day, &sec, &
ttm, &s
tm))
return -2;
if (day > 0)