]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux-fcgi/trace: fix wrong set of trace flags in fcgi_strm_add_eom()
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2020 15:24:59 +0000 (17:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2020 15:24:59 +0000 (17:24 +0200)
A typo resulted in '||' being used to concatenate trace flags, which will
only set flag of value '1' there. Noticed by clang 10 and reported in
issue #588.

No backport is needed, this trace was added in 2.2-dev.

src/mux_fcgi.c

index b0920385faeeb3f848b6a4aececb620dca87d890..2f712f3aca6017235698136e6df22570f9d8cacb 100644 (file)
@@ -3288,7 +3288,7 @@ static size_t fcgi_strm_add_eom(struct fcgi_strm *fstrm, struct h1m *h1m, struct
 {
        int ret;
 
-       TRACE_ENTER(FCGI_EV_RSP_DATA||FCGI_EV_RSP_EOM, fstrm->fconn->conn, fstrm,, (size_t[]){max});
+       TRACE_ENTER(FCGI_EV_RSP_DATA|FCGI_EV_RSP_EOM, fstrm->fconn->conn, fstrm,, (size_t[]){max});
        ret = h1_parse_msg_eom(h1m, htx, max);
        if (!ret) {
                TRACE_DEVEL("leaving on missing data or error", FCGI_EV_RSP_DATA|FCGI_EV_RSP_EOM, fstrm->fconn->conn, fstrm);