diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-19 19:40:12 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-04-19 19:40:12 +0000 |
commit | e0323b30e9a0d21d7bd0d9d22bb74ab97ff2c071 (patch) | |
tree | 2174374c73e1d82493c0611a765259d4391c98f8 /lib/libssl | |
parent | 9329765b97a834ee8d31b1076dfda092b7b725db (diff) |
release buffers fix was lost in merge. put it back.
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/src/ssl/s3_pkt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/src/ssl/s3_pkt.c b/lib/libssl/src/ssl/s3_pkt.c index 52c48e945e1..60c51146acb 100644 --- a/lib/libssl/src/ssl/s3_pkt.c +++ b/lib/libssl/src/ssl/s3_pkt.c @@ -986,7 +986,8 @@ start: if (rr->length == 0) { 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); } } |