libmicrohttpd2

HTTP server C library (MHD 2.x, alpha)
Log | Files | Refs | README | LICENSE

commit 364bb08104c98f434b557206c238723cd4e14c79
parent 483c1890dde3a1c8f1054657a14b1498f2ab2fc7
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date:   Tue, 30 Dec 2025 18:45:41 +0100

h2_comm.c: fixed wrong assert

Diffstat:
Msrc/mhd2/h2/h2_comm.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mhd2/h2/h2_comm.c b/src/mhd2/h2/h2_comm.c @@ -406,7 +406,7 @@ h2_handle_preface_not_found (struct MHD_Connection *restrict c) (c->daemon->req_cfg.strictness <= MHD_PSL_EXTRA_PERMISSIVE); mhd_assert (mhd_HTTP_LAYER_PREFACE == c->h_layer.state); - mhd_assert (mhd_H2_PREFACE_LEN <= c->read_buffer_offset); + mhd_assert (0u != c->read_buffer_offset); #ifdef MHD_SUPPORT_HTTPS if (mhd_C_HAS_TLS (c))