0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 14:38:57 +02:00

ircd::server: Fix discard buffering.

This commit is contained in:
Jason Volk 2019-03-08 16:25:38 -08:00
parent 8e2aef32ef
commit 6d9fb00d8c

View file

@ -3234,13 +3234,15 @@ const
{
assert(request);
assert(content_overflow() > 0);
assert(content_overflow() <= state.content_read);
assert(content_overflow() <= state.content_length);
assert(state.content_read >= size(request->in.content));
assert(state.content_length >= state.content_read);
const size_t remaining
{
content_overflow() - state.content_read
state.content_length - state.content_read
};
assert(remaining <= state.content_length);
static char buffer[512];
const size_t buffer_max
{