Fix a memory leak in SSL.
PR: 477
This commit is contained in:
parent
d48e6a47bd
commit
8f94b2010f
@ -1896,6 +1896,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…
x
Reference in New Issue
Block a user