]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: spoe: correction of setting bits for analyzer
authorMiroslav Zagorac <mzagorac@haproxy.com>
Fri, 19 Jun 2020 20:17:17 +0000 (22:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Jun 2020 09:52:04 +0000 (11:52 +0200)
When a SPOE filter starts the response analyze, the wrong flag is tested on the
pre_analyzers bit field. AN_RES_INSPECT must be tested instead of
SPOE_EV_ON_TCP_RSP.

This patch must be backported to all versions with the SPOE support, i.e as far
as 1.7.

src/flt_spoe.c

index 49d7466ae7d8088268b12bb647a12a93eb8bddca..4790f5945814e5dd4e5117f20ce631f78f8e1172 100644 (file)
@@ -3187,7 +3187,7 @@ spoe_start_analyze(struct stream *s, struct filter *filter, struct channel *chn)
                ctx->flags |= SPOE_CTX_FL_CLI_CONNECTED;
        }
        else {
-               if (filter->pre_analyzers & SPOE_EV_ON_TCP_RSP)
+               if (filter->pre_analyzers & AN_RES_INSPECT)
                        chn->analysers |= AN_RES_INSPECT;
 
                if (ctx->flags & SPOE_CTX_FL_SRV_CONNECTED)