]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mux-h2: fix end-of-stream flag name when processing headers
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 07:10:14 +0000 (08:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Jan 2019 07:12:54 +0000 (08:12 +0100)
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.

src/mux_h2.c

index 5803a84ff6fb63b75db70f9a3cbaa88c00ef24d1..e0859b91ace0f709698afab0fd534e0340bc2f5a 100644 (file)
@@ -3332,7 +3332,7 @@ next_frame:
        }
 
        /* OK now we have our header list in <list> */
-       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 */