diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-10-02 01:04:06 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-10-07 08:57:54 +1000 |
commit | ae9bcce2ab57d19119a85788eb48f8e8ba8ed3ee (patch) | |
tree | c0d33999611bcf87d91d819c5215950d96e23c9c | |
parent | db78f8b3859aa35a4988d4ba49d5e8de8c2b491d (diff) |
Use size of target buffer for allocation
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13055)
(cherry picked from commit 8ad369171fc2b435c0ca427111481da4d4c3c1ce)
-rw-r--r-- | ssl/ssl_sess.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |