From: William Lallemand Date: Wed, 25 May 2016 00:33:16 +0000 (+0200) Subject: MINOR: set the CO_FL_ADDR_FROM_SET flags with 'set-src' X-Git-Tag: v1.7-dev4~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=01252ed53c1ab2cf3a6f8b1172589d90d6289c9a;p=thirdparty%2Fhaproxy.git MINOR: set the CO_FL_ADDR_FROM_SET flags with 'set-src' When the 'set-src' action is used, the CO_FL_ADDR_FROM_SET wasn't set, it can lead to address being rewritten. --- diff --git a/src/proto_tcp.c b/src/proto_tcp.c index b283db4fe4..806eb3e965 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -1448,6 +1448,7 @@ enum act_return tcp_action_req_set_src(struct act_rule *rule, struct proxy *px, ((struct sockaddr_in6 *)&cli_conn->addr.from)->sin6_port = 0; } } + cli_conn->flags |= CO_FL_ADDR_FROM_SET; } return ACT_RET_CONT; }