summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2017-01-24 01:34:09 +0000
committerjsing <jsing@openbsd.org>2017-01-24 01:34:09 +0000
commitcb0bc3d64ce45f7abd1b99f044f45dfee71fedf3 (patch)
treeb0ccd3e07be7fffeaf3f1bb834779c9d53e13a9b
parentAdd missing documentation for tls_config_set_verify_depth (diff)
downloadwireguard-openbsd-cb0bc3d64ce45f7abd1b99f044f45dfee71fedf3.tar.xz
wireguard-openbsd-cb0bc3d64ce45f7abd1b99f044f45dfee71fedf3.zip
There is no point in zeroing fields that exist within a struct that is
about to be explicit_bzero'd and freed.
-rw-r--r--lib/libssl/ssl_sess.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c
index f44fdcc4194..4033b1e8f1e 100644
--- a/lib/libssl/ssl_sess.c
+++ b/lib/libssl/ssl_sess.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_sess.c,v 1.63 2017/01/23 13:36:13 jsing Exp $ */
+/* $OpenBSD: ssl_sess.c,v 1.64 2017/01/24 01:34:09 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -706,9 +706,7 @@ SSL_SESSION_free(SSL_SESSION *ss)
sk_SSL_CIPHER_free(ss->ciphers);
free(ss->tlsext_hostname);
free(ss->tlsext_tick);
- ss->internal->tlsext_ecpointformatlist_length = 0;
free(ss->internal->tlsext_ecpointformatlist);
- ss->internal->tlsext_ellipticcurvelist_length = 0;
free(ss->internal->tlsext_ellipticcurvelist);
explicit_bzero(ss->internal, sizeof(*ss->internal));