projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48e862
)
Missing OPENSSL_free on error path.
author
Eric Dequin
<Dequin_Eric@emc.com>
Thu, 12 Feb 2015 15:44:30 +0000
(10:44 -0500)
committer
Rich Salz
<rsalz@openssl.org>
Thu, 12 Feb 2015 16:15:39 +0000
(11:15 -0500)
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit
1d2932de4cefcc200f175863a42c311916269981
)
ssl/t1_enc.c
patch
|
blob
|
history
diff --git
a/ssl/t1_enc.c
b/ssl/t1_enc.c
index 99d830d449d2b2bc971d5d6df6606cd6e1e30fd0..741dc0b6b4c8c84f5c4330becc7c851ff1494e84 100644
(file)
--- a/
ssl/t1_enc.c
+++ b/
ssl/t1_enc.c
@@
-631,6
+631,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