aboutsummaryrefslogtreecommitdiff
path: root/ssl/record/ssl3_buffer.c
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2024-06-20 23:24:17 +0000
committerEnji Cooper <ngie@FreeBSD.org>2024-06-20 23:24:17 +0000
commit1070e7dca8223387baf5155524b28f62bfe7da3c (patch)
treeeaa96223b0f6fd1e86ecd5165af26a4d85a3fff2 /ssl/record/ssl3_buffer.c
parent9dd13e84fa8eca8f3462bd55485aa3da8c37f54a (diff)
Diffstat (limited to 'ssl/record/ssl3_buffer.c')
-rw-r--r--ssl/record/ssl3_buffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/record/ssl3_buffer.c b/ssl/record/ssl3_buffer.c
index 97b0c26ced81..e769235fe0de 100644
--- a/ssl/record/ssl3_buffer.c
+++ b/ssl/record/ssl3_buffer.c
@@ -1,5 +1,5 @@
/*
- * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
@@ -191,5 +191,7 @@ int ssl3_release_read_buffer(SSL *s)
OPENSSL_cleanse(b->buf, b->len);
OPENSSL_free(b->buf);
b->buf = NULL;
+ s->rlayer.packet = NULL;
+ s->rlayer.packet_length = 0;
return 1;
}