diff options
author | Todd Short <tshort@akamai.com> | 2017-04-26 14:05:49 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2017-06-02 12:11:38 -0400 |
commit | 1ee2125922d3302e3ea738442bf2b051a445cac0 (patch) | |
tree | 0259c6728f45fd4d836777787dbc4aa9ae23e814 /crypto/ec/asm/ecp_nistz256-x86_64.pl | |
parent | 01dfaa08b1960049f91485f2e5eec6c6bd03db39 (diff) |
Fix ex_data and session_dup issues
Code was added in commit b3c31a65 that overwrote the last ex_data value
using CRYPTO_dup_ex_data() causing a memory leak, and potentially
confusing the ex_data dup() callback.
In ssl_session_dup(), fix error handling (properly reference and up-ref
shared data) and new-up the ex_data before calling CRYPTO_dup_ex_data();
all other structures that dup ex_data have the destination ex_data new'd
before the dup.
Fix up some of the ex_data documentation.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3323)
Diffstat (limited to 'crypto/ec/asm/ecp_nistz256-x86_64.pl')
0 files changed, 0 insertions, 0 deletions