Missing OPENSSL_free on error path.
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (cherry picked from commit 1d2932de4cefcc200f175863a42c311916269981)
This commit is contained in:
parent
e48e86232e
commit
a1331af032
@ -631,6 +631,7 @@ int tls1_setup_key_block(SSL *s)
|
|||||||
|
|
||||||
if ((p2 = (unsigned char *)OPENSSL_malloc(num)) == NULL) {
|
if ((p2 = (unsigned char *)OPENSSL_malloc(num)) == NULL) {
|
||||||
SSLerr(SSL_F_TLS1_SETUP_KEY_BLOCK, ERR_R_MALLOC_FAILURE);
|
SSLerr(SSL_F_TLS1_SETUP_KEY_BLOCK, ERR_R_MALLOC_FAILURE);
|
||||||
|
OPENSSL_free(p1);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
#ifdef TLS_DEBUG
|
#ifdef TLS_DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user