0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

Fixed a minor issue in httpcommon.hpp -- SSL read was not respecting reserved tailroom.

This commit is contained in:
James Yonan 2015-10-28 22:57:43 -06:00 committed by Lev Stipakov
parent 36a2a401e7
commit a095cd1237
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -415,10 +415,11 @@ namespace openvpn {
BufferAllocated buf;
while (!halt && ssl_sess->read_cleartext_ready())
{
frame->prepare(Frame::READ_SSL_CLEARTEXT, buf);
const Frame::Context& fc = (*frame)[Frame::READ_SSL_CLEARTEXT];
fc.prepare(buf);
ssize_t size = 0;
try {
size = ssl_sess->read_cleartext(buf.data(), buf.max_size());
size = ssl_sess->read_cleartext(buf.data(), fc.payload());
}
catch (...)
{