diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-01-04 16:46:08 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-01-04 16:46:08 +0000 |
commit | 0cd6e2d24d7b2abb43d188cc0d39c57607e055e5 (patch) | |
tree | 0270d23bf34776c070426586b687473c684d96e8 /lib/libssl | |
parent | 0deeea9d153cd6ce527ed3764c57d1de5815bb00 (diff) |
Keep the various free calls of tls13_record_layer_free() in the
order of the struct members for reviewability.
ok jsing
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/tls13_record_layer.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <jsing@openbsd.org> * @@ -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); |