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 | 26a8164c7b46659b5df06ffc416be085ee66a348 (patch) | |
tree | e5275a1a6aa790cca562553d98161e71280a6ef0 /lib/libssl | |
parent | 5e855cf07507a3584962a7a9ddd44cdc8593d718 (diff) |
release buffers fix was lost in merge. put it back.
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/s3_pkt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libssl/s3_pkt.c b/lib/libssl/s3_pkt.c index 52c48e945e1..60c51146acb 100644 --- a/lib/libssl/s3_pkt.c +++ b/lib/libssl/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); } } |