diff options
author | Matt Caswell <matt@openssl.org> | 2014-12-04 09:56:16 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-12-08 16:51:01 +0000 |
commit | ec5c25b3b46078de5af092b67916140fa9ca147b (patch) | |
tree | 8f2421a85c316acb1eef758f34d90ce89fdc4b53 /ssl | |
parent | 38afaa48ec10d6256179b89639ce07ff57b7fe0d (diff) |
Fixed memory leak in the event of a failure of BUF_MEM_grow
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 41bf25013032da0eeb111ce3c8fc0946c0e61c41)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_srvr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 2a56f2beca..546d633e34 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -246,6 +246,7 @@ int ssl3_accept(SSL *s) } if (!BUF_MEM_grow(buf,SSL3_RT_MAX_PLAIN_LENGTH)) { + BUF_MEM_free(buf); ret= -1; goto end; } |