From: Christopher Faulet Date: Thu, 23 Dec 2021 12:59:47 +0000 (+0100) Subject: MINOR: tcp-act: Always access the stream-int via the conn-stream X-Git-Tag: v2.6-dev2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0de82720e753958ddfc3f992ddc7786a2a6201d9;p=thirdparty%2Fhaproxy.git MINOR: tcp-act: Always access the stream-int via the conn-stream 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 tcp-act part. --- diff --git a/src/tcp_act.c b/src/tcp_act.c index b85cf28da6..a2ed7d08bd 100644 --- a/src/tcp_act.c +++ b/src/tcp_act.c @@ -68,9 +68,9 @@ static enum act_return tcp_action_req_set_src(struct act_rule *rule, struct prox case ACT_F_TCP_REQ_CNT: case ACT_F_HTTP_REQ: - if (!si_get_src(&s->si[0])) + if (!si_get_src(cs_si(s->csf))) goto end; - src = s->si[0].src; + src = cs_si(s->csf)->src; break; default: @@ -124,9 +124,9 @@ static enum act_return tcp_action_req_set_dst(struct act_rule *rule, struct prox case ACT_F_TCP_REQ_CNT: case ACT_F_HTTP_REQ: - if (!si_get_dst(&s->si[0])) + if (!si_get_dst(cs_si(s->csf))) goto end; - dst = s->si[0].dst; + dst = cs_si(s->csf)->dst; break; default: @@ -181,9 +181,9 @@ static enum act_return tcp_action_req_set_src_port(struct act_rule *rule, struct case ACT_F_TCP_REQ_CNT: case ACT_F_HTTP_REQ: - if (!si_get_src(&s->si[0])) + if (!si_get_src(cs_si(s->csf))) goto end; - src = s->si[0].src; + src = cs_si(s->csf)->src; break; default: @@ -236,9 +236,9 @@ static enum act_return tcp_action_req_set_dst_port(struct act_rule *rule, struct case ACT_F_TCP_REQ_CNT: case ACT_F_HTTP_REQ: - if (!si_get_dst(&s->si[0])) + if (!si_get_dst(cs_si(s->csf))) goto end; - dst = s->si[0].dst; + dst = cs_si(s->csf)->dst; break; default: