From: Eugene Syromiatnikov Date: Tue, 28 Apr 2026 10:02:48 +0000 (+0200) Subject: ssl/record/methods/tls_common.c: call BIO_free_all() on rl->bio in tls_int_free X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ecae5960a16317c0195c01a9e640ea884c16871;p=thirdparty%2Fopenssl.git ssl/record/methods/tls_common.c: call BIO_free_all() on rl->bio in tls_int_free Since it is free'd using this call in tls_set1_bio(). Complements: 435feadaf4f9 "Fix record layer leak when swapping chained transport BIO" Signed-off-by: Eugene Syromiatnikov Reviewed-by: Matt Caswell Reviewed-by: Saša Nedvědický MergeDate: Sat May 2 18:10:42 2026 (Merged from https://github.com/openssl/openssl/pull/31011) --- diff --git a/ssl/record/methods/tls_common.c b/ssl/record/methods/tls_common.c index 7de395f2775..c8e5218226d 100644 --- a/ssl/record/methods/tls_common.c +++ b/ssl/record/methods/tls_common.c @@ -1398,7 +1398,7 @@ err: static void tls_int_free(OSSL_RECORD_LAYER *rl) { BIO_free(rl->prev); - BIO_free(rl->bio); + BIO_free_all(rl->bio); BIO_free(rl->next); ossl_tls_buffer_release(&rl->rbuf);