]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: tcp-rules: Preserve the right filter analyser on content eval abort
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Jul 2020 09:40:07 +0000 (11:40 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Jul 2020 07:31:09 +0000 (09:31 +0200)
When a tcp-request or a tcp-response content ruleset evaluation is aborted, the
corresponding FLT_END analyser must be preserved, if any. But because of a typo
error, on the tcp-response content ruleset evaluation, we try to preserve the
request analyser instead of the response one.

This patch must be backported to 2.2.

src/tcp_rules.c

index 984aa501d3106464a413d75564b4b41a05238430..4db7dec28b43527e36f811747d8dd66d67ea6c0d 100644 (file)
@@ -401,7 +401,7 @@ resume_execution:
        channel_abort(&s->req);
 
   abort:
-       rep->analysers &= AN_REQ_FLT_END;
+       rep->analysers &= AN_RES_FLT_END;
 
        if (!(s->flags & SF_ERR_MASK))
                s->flags |= SF_ERR_PRXCOND;