From: Ben Laurie Date: Wed, 23 Apr 2014 06:24:03 +0000 (+0100) Subject: Fix use after free. X-Git-Tag: OpenSSL_1_0_1h~71 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=725c5f1ad393a7bc344348d0ec7c268aaf2700a7;p=oweals%2Fopenssl.git Fix use after free. --- diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index 96ba63262e..8deeab3c9f 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -1055,7 +1055,7 @@ start: { s->rstate=SSL_ST_READ_HEADER; rr->off=0; - if (s->mode & SSL_MODE_RELEASE_BUFFERS) + if (s->mode & SSL_MODE_RELEASE_BUFFERS && s->s3->rbuf.left == 0) ssl3_release_read_buffer(s); } }