From deff2c33d2859c6868fa96af8c54050ab46ffc53 Mon Sep 17 00:00:00 2001 From: Nevv Date: Tue, 2 Dec 2025 20:21:57 +0800 Subject: [PATCH] RECORD_LAYER_clear(): Remove redundant BIO_free(rl->rrlnext) Fixes #29283 CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/29289) --- ssl/record/rec_layer_s3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index dac248fec8f..a1234fa161e 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -57,10 +57,10 @@ int RECORD_LAYER_clear(RECORD_LAYER *rl) rl->rrlmethod->free(rl->rrl); /* Ignore return value */ if (rl->wrlmethod != NULL) rl->wrlmethod->free(rl->wrl); /* Ignore return value */ - BIO_free(rl->rrlnext); + rl->rrlmethod = NULL; rl->wrlmethod = NULL; - rl->rrlnext = NULL; + rl->rrl = NULL; rl->wrl = NULL; -- 2.47.3