Skip to content

Commit

Permalink
Use size of target buffer for allocation
Browse files Browse the repository at this point in the history
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 openssl#13055)
  • Loading branch information
BenBE authored and paulidale committed Oct 6, 2020
1 parent c5fc675 commit 8ad3691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssl/ssl_sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ad3691

Please sign in to comment.