diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-10-20 15:21:23 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-10-20 15:21:23 +0000 |
commit | 99d7a3ab170b9b6367dc5116855888fd4bf132e1 (patch) | |
tree | 13d76d6257b075f8b46872c836dc7682e781753d /lib/libssl | |
parent | 1dcb71726acaca7377e541a20c8c76df28028a66 (diff) |
Clean up resumption master secret in SSL_SESSION_free()
ok jsing
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/ssl_sess.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libssl/ssl_sess.c b/lib/libssl/ssl_sess.c index 45c6ddb6827..39e8b3353aa 100644 --- a/lib/libssl/ssl_sess.c +++ b/lib/libssl/ssl_sess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_sess.c,v 1.118 2022/10/02 16:36:41 jsing Exp $ */ +/* $OpenBSD: ssl_sess.c,v 1.119 2022/10/20 15:21:22 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -772,6 +772,8 @@ SSL_SESSION_free(SSL_SESSION *ss) free(ss->tlsext_ecpointformatlist); free(ss->tlsext_supportedgroups); + tls13_secret_cleanup(&ss->resumption_master_secret); + freezero(ss, sizeof(*ss)); } |