fix memory leak
This commit is contained in:
parent
dce7b92d0b
commit
025ee1dbde
@ -2243,6 +2243,7 @@ int ssl3_send_client_key_exchange(SSL *s)
|
||||
if (!DH_generate_key(dh_clnt))
|
||||
{
|
||||
SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,ERR_R_DH_LIB);
|
||||
DH_free(dh_clnt);
|
||||
goto err;
|
||||
}
|
||||
|
||||
@ -2254,6 +2255,7 @@ int ssl3_send_client_key_exchange(SSL *s)
|
||||
if (n <= 0)
|
||||
{
|
||||
SSLerr(SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE,ERR_R_DH_LIB);
|
||||
DH_free(dh_clnt);
|
||||
goto err;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user