summaryrefslogtreecommitdiff
path: root/ssl/record/methods
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-10-21 14:32:51 +0100
committerMatt Caswell <matt@openssl.org>2022-10-25 11:42:11 +0100
commit50bed93a7655dc6d990aa42e52b316a97e2dc820 (patch)
tree703d2468387009b8e292325689ed2e488572bfb9 /ssl/record/methods
parentbb2bbd53d49c510c2ae705d86e8fd2ed829cbd92 (diff)
downloadopenssl-new-50bed93a7655dc6d990aa42e52b316a97e2dc820.tar.gz
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 <tomas@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19470)
Diffstat (limited to 'ssl/record/methods')
-rw-r--r--ssl/record/methods/tls_common.c3
1 files changed, 3 insertions, 0 deletions
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);