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:55:49 +1000 |
commit | 8ad369171fc2b435c0ca427111481da4d4c3c1ce (patch) | |
tree | 0210c32c7b292a5e317574f0cb1f786daf804aaa | |
parent | c5fc6754b7ab60a53b5c19e08a719d5001fa4d49 (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)
-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 83fc149cfd..4c4fc80023 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -110,7 +110,7 @@ SSL_SESSION *ssl_session_dup(const SSL_SESSION *src, int ticket) { SSL_SESSION *dest; - dest = OPENSSL_malloc(sizeof(*src)); + dest = OPENSSL_malloc(sizeof(*dest)); if (dest == NULL) { goto err; } |