]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ssl/record/methods/tls_common.c: call BIO_free_all() on rl->bio in tls_int_free
authorEugene Syromiatnikov <esyr@openssl.org>
Tue, 28 Apr 2026 10:02:48 +0000 (12:02 +0200)
committerNorbert Pocs <norbertp@openssl.org>
Sat, 2 May 2026 18:10:36 +0000 (20:10 +0200)
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 <esyr@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.foundation>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
MergeDate: Sat May  2 18:10:42 2026
(Merged from https://github.com/openssl/openssl/pull/31011)

ssl/record/methods/tls_common.c

index 7de395f277553c2f74ce267ba7cd52dd310ab625..c8e5218226df6bf42882d470b94859a8a175a09d 100644 (file)
@@ -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);