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:
parent
36a2a401e7
commit
a095cd1237
@ -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 (...)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user