diff options
| author | tb <> | 2020-01-21 04:45:18 +0000 |
|---|---|---|
| committer | tb <> | 2020-01-21 04:45:18 +0000 |
| commit | caf0ffb8aaaf58c5a55de1a955c64b32d52b8e7f (patch) | |
| tree | f3397501dbd7fd167a66813a717ee53918ce41dd /src/lib/libssl/tls13_lib.c | |
| parent | fbbdf52bf77387e6b6c758c86c6d766e585de509 (diff) | |
| download | openbsd-caf0ffb8aaaf58c5a55de1a955c64b32d52b8e7f.tar.gz openbsd-caf0ffb8aaaf58c5a55de1a955c64b32d52b8e7f.tar.bz2 openbsd-caf0ffb8aaaf58c5a55de1a955c64b32d52b8e7f.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 '')
| -rw-r--r-- | src/lib/libssl/tls13_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_lib.c b/src/lib/libssl/tls13_lib.c index d30d28c45f..fbd7a9a83a 100644 --- a/src/lib/libssl/tls13_lib.c +++ b/src/lib/libssl/tls13_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls13_lib.c,v 1.14 2020/01/20 13:10:37 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_lib.c,v 1.15 2020/01/21 04:45:18 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2019 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2019 Bob Beck <beck@openbsd.org> |
| @@ -265,6 +265,7 @@ tls13_ctx_free(struct tls13_ctx *ctx) | |||
| 265 | 265 | ||
| 266 | tls13_error_clear(&ctx->error); | 266 | tls13_error_clear(&ctx->error); |
| 267 | tls13_record_layer_free(ctx->rl); | 267 | tls13_record_layer_free(ctx->rl); |
| 268 | tls13_handshake_msg_free(ctx->hs_msg); | ||
| 268 | 269 | ||
| 269 | freezero(ctx, sizeof(struct tls13_ctx)); | 270 | freezero(ctx, sizeof(struct tls13_ctx)); |
| 270 | } | 271 | } |
