summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-04-10 19:01:38 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-04-10 19:01:38 +0000
commitcef89ad86c33e0692332a2639d6a7c84a1e7320c (patch)
tree68671a8179b2cdb90fbafb670c3063fd70c93140
parent479135b23548e5678bff16d9650fc6d27e556bc8 (diff)
Piotr Sikora pointed me at a more refined diff for the buffer release
issue. Apply that version. Maybe someday upstream will wake up and then we can have the same code. https://rt.openssl.org/Ticket/Display.html?id=2167&user=guest&pass=guest
-rw-r--r--lib/libssl/s3_pkt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libssl/s3_pkt.c b/lib/libssl/s3_pkt.c
index c5706eadb0d..722ed9a858f 100644
--- a/lib/libssl/s3_pkt.c
+++ b/lib/libssl/s3_pkt.c
@@ -1054,6 +1054,8 @@ start:
{
s->rstate=SSL_ST_READ_HEADER;
rr->off=0;
+ if (s->mode & SSL_MODE_RELEASE_BUFFERS && s->s3->rbuf.left == 0)
+ ssl3_release_read_buffer(s);
}
}
return(n);