From: Ben Laurie Date: Wed, 23 Apr 2014 06:24:03 +0000 (+0100) Subject: Fix use after free. X-Git-Tag: master-post-reformat~861 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=94d1f4b0f3d262edf1cf7023a01d5404945035d5;p=oweals%2Fopenssl.git Fix use after free. --- diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index b9e45c74bc..d601a18171 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -1334,7 +1334,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); } }