0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd::server: Fix false assertions in dynamic chunk context.

This commit is contained in:
Jason Volk 2019-12-31 17:01:56 -08:00
parent eeb1fe6901
commit 1e5950cba9

View file

@ -3556,7 +3556,7 @@ ircd::server::tag::read_chunk_dynamic_content(const const_buffer &buffer,
state.content_read += addl_content_read;
assert(state.chunk_read <= state.content_read);
assert(state.chunk_read <= state.chunk_length);
assert(state.content_length >= state.content_read);
assert(state.content_length >= state.chunk_length);
// Invoke the user's optional progress callback; this function
// should be marked noexcept for the time being.
@ -3606,7 +3606,6 @@ ircd::server::chunk_dynamic_content_completed(tag &tag,
// State sanity tests
assert(state.content_length == size_chunks(req.in));
assert(state.content_length >= state.content_read);
assert(state.content_length >= state.chunk_length);
assert(state.content_length >= state.chunk_read);
assert(state.content_read >= state.chunk_length);