Commit deff2c33d2 for openssl.org
commit deff2c33d2859c6868fa96af8c54050ab46ffc53
Author: Nevv <liuyimingwo@qq.com>
Date: Tue Dec 2 20:21:57 2025 +0800
RECORD_LAYER_clear(): Remove redundant BIO_free(rl->rrlnext)
Fixes #29283
CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29289)
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c
index dac248fec8..a1234fa161 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;