MINOR: backend: Get client dst address to set the server's one only if needful
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 Nov 2021 11:02:56 +0000 (12:02 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 Nov 2021 14:25:34 +0000 (15:25 +0100)
commit34a3eb4c4275ef2475ea6848e08e98ae2615bf13
treeee247ab19860478cec51bd65d226d26801c546b3
parentb0006eee09ff5e4ac11f25dfe1f366804acb1382
MINOR: backend: Get client dst address to set the server's one only if needful

In alloc_dst_address(), the client destination address must only be
retrieved when we are sure to use it. Most of time, this save a syscall to
getsockname(). It is not a bugfix in itself. But it revealed a bug in the
QUIC part. The CO_FL_ADDR_TO_SET flag is not set when the destination
address is create for anew quic client connection.
src/backend.c