summaryrefslogtreecommitdiff
path: root/lib/libtls
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-01-05 15:57:39 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-01-05 15:57:39 +0000
commit1209d47289264c143e59afb32477c34cba024ade (patch)
treeeecdf8dd71e3f637dfe41fd80bb8119ed34b89b1 /lib/libtls
parent1af9970686f04bad58682eac55a1e831cefe8147 (diff)
Remove memset that was made redundant with the ASN1_time_parse()
fix in libcrypto/asn1/a_time_tm.c r1.16. Suggested by jsing
Diffstat (limited to 'lib/libtls')
-rw-r--r--lib/libtls/tls_conninfo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libtls/tls_conninfo.c b/lib/libtls/tls_conninfo.c
index d44dc842b6e..4d9ae29e09c 100644
--- a/lib/libtls/tls_conninfo.c
+++ b/lib/libtls/tls_conninfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_conninfo.c,v 1.21 2019/11/02 13:37:59 jsing Exp $ */
+/* $OpenBSD: tls_conninfo.c,v 1.22 2021/01/05 15:57:38 tb Exp $ */
/*
* Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2015 Bob Beck <beck@openbsd.org>
@@ -112,9 +112,6 @@ tls_get_peer_cert_times(struct tls *ctx, time_t *notbefore,
if (ctx->ssl_peer_cert == NULL)
return (-1);
- memset(&before_tm, 0, sizeof(before_tm));
- memset(&after_tm, 0, sizeof(after_tm));
-
if ((before = X509_get_notBefore(ctx->ssl_peer_cert)) == NULL)
goto err;
if ((after = X509_get_notAfter(ctx->ssl_peer_cert)) == NULL)