projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eec4cc8
)
Fix memory leak.
author
Dr. Stephen Henson
<steve@openssl.org>
Sun, 29 Jun 2014 12:53:06 +0000
(13:53 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Sun, 29 Jun 2014 12:53:06 +0000
(13:53 +0100)
PR#2531.
ssl/t1_lib.c
patch
|
blob
|
history
diff --git
a/ssl/t1_lib.c
b/ssl/t1_lib.c
index b693ddab729d83c52eb196ba38fbe96fb3f54c83..98e081f09787b7e6a33925ed0cc653e7af8f9c16 100644
(file)
--- a/
ssl/t1_lib.c
+++ b/
ssl/t1_lib.c
@@
-1846,7
+1846,11
@@
static int tls_decrypt_ticket(SSL *s, const unsigned char *etick, int eticklen,
}
EVP_DecryptUpdate(&ctx, sdec, &slen, p, eticklen);
if (EVP_DecryptFinal(&ctx, sdec + slen, &mlen) <= 0)
+ {
+ EVP_CIPHER_CTX_cleanup(&ctx);
+ OPENSSL_free(sdec);
goto tickerr;
+ }
slen += mlen;
EVP_CIPHER_CTX_cleanup(&ctx);
p = sdec;