diff options
author | Ben Laurie <ben@links.org> | 2014-04-23 07:24:03 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-04-23 07:24:03 +0100 |
commit | 94d1f4b0f3d262edf1cf7023a01d5404945035d5 (patch) | |
tree | e2c5f6cceea605ae6d1b80dc31cb896d7eb17490 /ssl/s3_pkt.c | |
parent | 4ba5e63bfd5c290ebde962af87588d503f3796b0 (diff) |
Fix use after free.
Diffstat (limited to 'ssl/s3_pkt.c')
-rw-r--r-- | ssl/s3_pkt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |