From a0fe2e72c48166c9c4bb423397723de1fb6227b0 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Wed, 23 Apr 2014 07:24:03 +0100 Subject: [PATCH] Fix use after free. --- ssl/s3_pkt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index a41c54f11b..8290f87290 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -1239,7 +1239,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); } } -- 2.40.0