]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http-act: Always access the stream-int via the conn-stream
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Dec 2021 12:57:00 +0000 (13:57 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Feb 2022 10:00:02 +0000 (11:00 +0100)
To be able to move the stream-interface from the stream to the conn-stream,
all access to the SI is done via the conn-stream. This patch is limited to
the http-act part.

src/http_act.c

index fc9306cb8a586f48e996d9b781d41f6ecff3c8ea..b7ec31241ad1ec8242e6429a7ddffe506246eec9 100644 (file)
@@ -756,7 +756,7 @@ static enum act_parse_ret parse_http_action_reject(const char **args, int *orig_
 static enum act_return http_req_disable_l7_retry(struct act_rule *rule, struct proxy *px,
                                           struct session *sess, struct stream *s, int flags)
 {
-       struct stream_interface *si = &s->si[1];
+       struct stream_interface *si = cs_si(s->csb);
 
        /* In theory, the SI_FL_L7_RETRY flags isn't set at this point, but
         * let's be future-proof and remove it anyway.