diff options
author | tb <> | 2021-01-05 15:57:38 +0000 |
---|---|---|
committer | tb <> | 2021-01-05 15:57:38 +0000 |
commit | 8c63e949ca60ff58f50aea6e577f86c886f0a174 (patch) | |
tree | fb70167218ca5451a1380a51db9b5a0ea2067572 | |
parent | 7cdf4177b4b7edaf9d25148b9dff18267c5e10de (diff) | |
download | openbsd-8c63e949ca60ff58f50aea6e577f86c886f0a174.tar.gz openbsd-8c63e949ca60ff58f50aea6e577f86c886f0a174.tar.bz2 openbsd-8c63e949ca60ff58f50aea6e577f86c886f0a174.zip |
Remove memset that was made redundant with the ASN1_time_parse()
fix in libcrypto/asn1/a_time_tm.c r1.16.
Suggested by jsing
-rw-r--r-- | src/lib/libtls/tls_conninfo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libtls/tls_conninfo.c b/src/lib/libtls/tls_conninfo.c index d44dc842b6..4d9ae29e09 100644 --- a/src/lib/libtls/tls_conninfo.c +++ b/src/lib/libtls/tls_conninfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls_conninfo.c,v 1.21 2019/11/02 13:37:59 jsing Exp $ */ | 1 | /* $OpenBSD: tls_conninfo.c,v 1.22 2021/01/05 15:57:38 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2015 Bob Beck <beck@openbsd.org> |
@@ -112,9 +112,6 @@ tls_get_peer_cert_times(struct tls *ctx, time_t *notbefore, | |||
112 | if (ctx->ssl_peer_cert == NULL) | 112 | if (ctx->ssl_peer_cert == NULL) |
113 | return (-1); | 113 | return (-1); |
114 | 114 | ||
115 | memset(&before_tm, 0, sizeof(before_tm)); | ||
116 | memset(&after_tm, 0, sizeof(after_tm)); | ||
117 | |||
118 | if ((before = X509_get_notBefore(ctx->ssl_peer_cert)) == NULL) | 115 | if ((before = X509_get_notBefore(ctx->ssl_peer_cert)) == NULL) |
119 | goto err; | 116 | goto err; |
120 | if ((after = X509_get_notAfter(ctx->ssl_peer_cert)) == NULL) | 117 | if ((after = X509_get_notAfter(ctx->ssl_peer_cert)) == NULL) |