diff options
author | beck <> | 2021-10-27 09:56:43 +0000 |
---|---|---|
committer | beck <> | 2021-10-27 09:56:43 +0000 |
commit | c4b045656c4e6d30f67df55e0294a6f4824f748e (patch) | |
tree | b64feea88e1c8085a84f85b942cc754c1e3751ee /src | |
parent | 5b11389ce53ed7fffc2ec4099109bd281776223b (diff) | |
download | openbsd-c4b045656c4e6d30f67df55e0294a6f4824f748e.tar.gz openbsd-c4b045656c4e6d30f67df55e0294a6f4824f748e.tar.bz2 openbsd-c4b045656c4e6d30f67df55e0294a6f4824f748e.zip |
Fix to correctly parse the 'to' time into the to_tm
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/asn1/a_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_time.c b/src/lib/libcrypto/asn1/a_time.c index 9cb41cf885..a1109968ce 100644 --- a/src/lib/libcrypto/asn1/a_time.c +++ b/src/lib/libcrypto/asn1/a_time.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_time.c,v 1.28 2021/10/27 09:50:57 beck Exp $ */ | 1 | /* $OpenBSD: a_time.c,v 1.29 2021/10/27 09:56:43 beck Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -114,7 +114,7 @@ ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from, | |||
114 | 114 | ||
115 | if (ASN1_time_parse(from->data, from->length, &tm_from, 0) == -1) | 115 | if (ASN1_time_parse(from->data, from->length, &tm_from, 0) == -1) |
116 | return 0; | 116 | return 0; |
117 | if (ASN1_time_parse(from->data, from->length, &tm_to, 0) == -1) | 117 | if (ASN1_time_parse(to->data, to->length, &tm_to, 0) == -1) |
118 | return 0; | 118 | return 0; |
119 | 119 | ||
120 | return OPENSSL_gmtime_diff(pday, psec, &tm_from, &tm_to); | 120 | return OPENSSL_gmtime_diff(pday, psec, &tm_from, &tm_to); |