commit | 01252ed53c1ab2cf3a6f8b1172589d90d6289c9a | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@irq6.net> | Wed May 25 02:33:16 2016 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jun 01 11:44:11 2016 +0200 |
tree | f2406cc49e24004ce8680968fe4db1bb4f8d3e73 | |
parent | 2e785f23cb7d788ded86ec8bcabe2e0ec86c9549 [diff] [blame] |
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 b283db4..806eb3e 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c
@@ -1448,6 +1448,7 @@ ((struct sockaddr_in6 *)&cli_conn->addr.from)->sin6_port = 0; } } + cli_conn->flags |= CO_FL_ADDR_FROM_SET; } return ACT_RET_CONT; }