0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-02 16:58:19 +02:00

ircd::server: Fix these assertions.

This commit is contained in:
Jason Volk 2018-01-21 05:04:48 -08:00
parent f1d659a6c0
commit 72bacdedf6

View file

@ -1648,12 +1648,13 @@ ircd::server::tag::wrote_buffer(const const_buffer &buffer)
if(written <= size(req.out.head))
{
assert(data(buffer) == data(req.out.head));
assert(written <= size(req.out.head));
assert(data(buffer) >= begin(req.out.head));
assert(data(buffer) < end(req.out.head));
}
else if(written <= size(req.out.head) + size(req.out.content))
{
assert(data(buffer) == data(req.out.content));
assert(data(buffer) >= begin(req.out.content));
assert(data(buffer) < end(req.out.content));
assert(written <= write_total());
// Invoke the user's optional progress callback; this function