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:44:09 +0000 |
commit | 6806b69084fc0a800cf33787568c517a21ebc2c3 (patch) | |
tree | 5448868205f6882dc4bfec3d99163db0f8c3aea7 /ssl/s3_srvr.c | |
parent | 9809ab965bfc011302422f01db91a4f6bfccd20c (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/s3_srvr.c')
-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 3bf6cfec52..a4342ba83f 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -286,6 +286,7 @@ int ssl3_accept(SSL *s) } if (!BUF_MEM_grow(buf,SSL3_RT_MAX_PLAIN_LENGTH)) { + BUF_MEM_free(buf); ret= -1; goto end; } |