diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-24 01:34:10 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2017-01-24 01:34:10 +0000 |
commit | 221b79466159a038271ecc0e94bb72107b0467bb (patch) | |
tree | 7cc668c2f4901b185cc9ad7e4ce98c58e02c6a0a /lib | |
parent | 1124eadf8c199e9f857233c35069060380fa3d0e (diff) |
There is no point in zeroing fields that exist within a struct that is
about to be explicit_bzero'd and freed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/ssl_sess.c | 4 |
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)); |