Missing OPENSSL_free on error path.
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
7b4a4b71b5
commit
1d2932de4c
1 changed files with 1 additions and 0 deletions
|
@ -649,6 +649,7 @@ int tls1_setup_key_block(SSL *s)
|
|||
|
||||
if ((p2 = (unsigned char *)OPENSSL_malloc(num)) == NULL) {
|
||||
SSLerr(SSL_F_TLS1_SETUP_KEY_BLOCK, ERR_R_MALLOC_FAILURE);
|
||||
OPENSSL_free(p1);
|
||||
goto err;
|
||||
}
|
||||
#ifdef TLS_DEBUG
|
||||
|
|
Loading…
Reference in a new issue