From 50bed93a7655dc6d990aa42e52b316a97e2dc820 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 21 Oct 2022 14:32:51 +0100 Subject: Fix test_tls13_encryption() This test was disabled during the record write record layer refactor. We can now enable it again. Reviewed-by: Tomas Mraz Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/19470) --- ssl/record/methods/tls_common.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ssl/record') diff --git a/ssl/record/methods/tls_common.c b/ssl/record/methods/tls_common.c index 0b0490cdbc..96697828ba 100644 --- a/ssl/record/methods/tls_common.c +++ b/ssl/record/methods/tls_common.c @@ -1398,6 +1398,9 @@ int tls_free(OSSL_RECORD_LAYER *rl) size_t left, written; int ret = 1; + if (rl == NULL) + return 1; + rbuf = &rl->rbuf; left = SSL3_BUFFER_get_left(rbuf); -- cgit v1.2.3