From f1ef7f641d8bc8de71394a84a46b70f74f30f565 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 3 Sep 2019 21:55:14 +0200 Subject: [PATCH] BUG/MINOR: mux-h1: Be sure to update the count before adding EOM after trailers Otherwise, an EOM may be added in a full buffer. This patch must be backported to 2.0. --- src/mux_h1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h1.c b/src/mux_h1.c index 90fb9e6f9..647a44f8f 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1476,7 +1476,7 @@ static size_t h1_process_input(struct h1c *h1c, struct buffer *buf, size_t count if (!ret) break; } - if (!h1_process_eom(h1s, h1m, htx, count)) + else if (!h1_process_eom(h1s, h1m, htx, count)) break; } else if (h1m->state == H1_MSG_DONE) {