From 0cd6e2d24d7b2abb43d188cc0d39c57607e055e5 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Mon, 4 Jan 2021 16:46:08 +0000 Subject: Keep the various free calls of tls13_record_layer_free() in the order of the struct members for reviewability. ok jsing --- lib/libssl/tls13_record_layer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libssl') diff --git a/lib/libssl/tls13_record_layer.c b/lib/libssl/tls13_record_layer.c index 2f980ab60ba..6d3f3f4929b 100644 --- a/lib/libssl/tls13_record_layer.c +++ b/lib/libssl/tls13_record_layer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_record_layer.c,v 1.56 2021/01/02 18:00:08 tb Exp $ */ +/* $OpenBSD: tls13_record_layer.c,v 1.57 2021/01/04 16:46:07 tb Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing * @@ -135,14 +135,14 @@ tls13_record_layer_free(struct tls13_record_layer *rl) if (rl == NULL) return; + tls13_record_layer_rrec_free(rl); + tls13_record_layer_wrec_free(rl); + freezero(rl->alert_data, rl->alert_len); freezero(rl->phh_data, rl->phh_len); tls13_record_layer_rbuf_free(rl); - tls13_record_layer_rrec_free(rl); - tls13_record_layer_wrec_free(rl); - EVP_AEAD_CTX_cleanup(&rl->read_aead_ctx); EVP_AEAD_CTX_cleanup(&rl->write_aead_ctx); -- cgit v1.2.3