diff --git a/ircd/server.cc b/ircd/server.cc index 9c859e6ad..eb21ca22a 100644 --- a/ircd/server.cc +++ b/ircd/server.cc @@ -3459,7 +3459,8 @@ const assert(request); assert(state.head_read <= size(request->in.head)); - assert(state.content_read <= state.content_length); + assert(state.content_read <= state.content_length + state.chunk_read); + assert(state.content_read <= state.content_length || !chunk_header_mode); if(state.status == (http::code)0) return make_read_head_buffer();