diff options
author | 2020-01-21 04:45:18 +0000 | |
---|---|---|
committer | 2020-01-21 04:45:18 +0000 | |
commit | 070fefd49d42f313a21115021854663912e5c7da (patch) | |
tree | 9356c96d73aeb85ad206aec9a69088654143621b /lib/libssl/tls13_lib.c | |
parent | Add alert processing in tls client code, by adding alert to the (diff) | |
download | wireguard-openbsd-070fefd49d42f313a21115021854663912e5c7da.tar.xz wireguard-openbsd-070fefd49d42f313a21115021854663912e5c7da.zip |
Clear and free the tls13_ctx that hangs off an SSL *s from
SSL_{clear,free}(3). Make sure the handshake context is
cleaned up completely: the hs_tls13 reacharound is taken
care of by ssl3_{clear,free}(3). Add a missing
tls13_handshake_msg_free() call to tls13_ctx_free().
ok beck jsing
Diffstat (limited to 'lib/libssl/tls13_lib.c')
-rw-r--r-- | lib/libssl/tls13_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/tls13_lib.c b/lib/libssl/tls13_lib.c index d30d28c45f7..fbd7a9a83ad 100644 --- a/lib/libssl/tls13_lib.c +++ b/lib/libssl/tls13_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_lib.c,v 1.14 2020/01/20 13:10:37 jsing Exp $ */ +/* $OpenBSD: tls13_lib.c,v 1.15 2020/01/21 04:45:18 tb Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> * Copyright (c) 2019 Bob Beck <beck@openbsd.org> @@ -265,6 +265,7 @@ tls13_ctx_free(struct tls13_ctx *ctx) tls13_error_clear(&ctx->error); tls13_record_layer_free(ctx->rl); + tls13_handshake_msg_free(ctx->hs_msg); freezero(ctx, sizeof(struct tls13_ctx)); } |