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:30:16 +0100 |
commit | a0fe2e72c48166c9c4bb423397723de1fb6227b0 (patch) | |
tree | e1836bde364c6bd14c4deb4222ddc47f103aa3cf /ssl | |
parent | 3b21abfd6c985dc04415893c8ec287676cbd5b5d (diff) |
Fix use after free.
Diffstat (limited to 'ssl')
-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 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); } } |