0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::server: Limit the cancelled head size to copy.

This commit is contained in:
Jason Volk 2020-11-06 19:48:59 -08:00
parent d3e1997d43
commit 749647bb89

View file

@ -2999,7 +2999,7 @@ noexcept
const const_buffer src
{
data(request.in.head) + tag.state.head_read,
tag.state.chunk_read
std::min(tag.state.chunk_read, tag.state.head_rem),
};
const mutable_buffer dst