The branch OpenSSL_1_1_1-stable has been updated
via ae9bcce2ab57d19119a85788eb48f8e8ba8ed3ee (commit)
from db78f8b3859aa35a4988d4ba49d5e8de8c2b491d (commit)
- Log -----------------------------------------------------------------
commit ae9bcce2ab57d19119a85788eb48f8e8ba8ed3ee
Author: Benny Baumann <[email protected]>
Date: Fri Oct 2 01:04:06 2020 +0200
Use size of target buffer for allocation
Reviewed-by: Ben Kaduk <[email protected]>
Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Richard Levitte <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from https://github.com/openssl/openssl/pull/13055)
(cherry picked from commit 8ad369171fc2b435c0ca427111481da4d4c3c1ce)
-----------------------------------------------------------------------
Summary of changes:
ssl/ssl_sess.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c
index 40c157bb42..423bb4d38a 100644
--- a/ssl/ssl_sess.c
+++ b/ssl/ssl_sess.c
@@ -107,7 +107,7 @@ SSL_SESSION *ssl_session_dup(SSL_SESSION *src, int ticket)
{
SSL_SESSION *dest;
- dest = OPENSSL_malloc(sizeof(*src));
+ dest = OPENSSL_malloc(sizeof(*dest));
if (dest == NULL) {
goto err;
}