diff options
author | tb <tb@openbsd.org> | 2021-01-05 15:57:38 +0000 |
---|---|---|
committer | tb <tb@openbsd.org> | 2021-01-05 15:57:38 +0000 |
commit | 361877a7f7f31174c567cb1d2b8c71bf765dc73d (patch) | |
tree | 221610a34901a9f916f5c30b4dfe9557601686ad /lib/libtls | |
parent | distribute the gzip'd version of bsd.rd on platforms where we all boot (diff) | |
download | wireguard-openbsd-361877a7f7f31174c567cb1d2b8c71bf765dc73d.tar.xz wireguard-openbsd-361877a7f7f31174c567cb1d2b8c71bf765dc73d.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
Diffstat (limited to 'lib/libtls')
-rw-r--r-- | lib/libtls/tls_conninfo.c | 5 |
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) |