mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Fix a memory leak in SSL.
PR: 477
This commit is contained in:
parent
4e78074b39
commit
2e60ea7634
@ -2047,6 +2047,7 @@ SSL *SSL_dup(SSL *s)
|
||||
* they should not both point to the same object,
|
||||
* and thus we can't use SSL_copy_session_id. */
|
||||
|
||||
ret->method->ssl_free(ret);
|
||||
ret->method = s->method;
|
||||
ret->method->ssl_new(ret);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user