From: Willy Tarreau Date: Thu, 3 Jan 2019 07:10:14 +0000 (+0100) Subject: CLEANUP: mux-h2: fix end-of-stream flag name when processing headers X-Git-Tag: v2.0-dev1~300 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=880f58049226e842e36e286a1653b714e8075b82;p=thirdparty%2Fhaproxy.git CLEANUP: mux-h2: fix end-of-stream flag name when processing headers In h2c_decode_headers() we mistakenly check for H2_F_DATA_END_STREAM while we should check for H2_F_HEADERS_END_STREAM. Both have the same value (1) but better stick to the correct flag. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 5803a84ff6..e0859b91ac 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -3332,7 +3332,7 @@ next_frame: } /* OK now we have our header list in */ - msgf = (h2c->dff & H2_F_DATA_END_STREAM) ? 0 : H2_MSGF_BODY; + msgf = (h2c->dff & H2_F_HEADERS_END_STREAM) ? 0 : H2_MSGF_BODY; if (htx) { /* HTX mode */