Fix memory leak in ssl3_send_client_key_exchange error handling.
Change-Id: I0f0d7a3d4cb6448582ae4945e732611bb9bf5d9f Reviewed-on: https://boringssl-review.googlesource.com/2231 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
525a0fe315
commit
1df112448b
@ -1943,6 +1943,8 @@ int ssl3_send_client_key_exchange(SSL *s)
|
||||
(pkey->pkey.rsa == NULL))
|
||||
{
|
||||
OPENSSL_PUT_ERROR(SSL, ssl3_send_client_key_exchange, ERR_R_INTERNAL_ERROR);
|
||||
if (pkey != NULL)
|
||||
EVP_PKEY_free(pkey);
|
||||
goto err;
|
||||
}
|
||||
rsa=pkey->pkey.rsa;
|
||||
|
Loading…
Reference in New Issue
Block a user