]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: make sockaddr_alloc() take the address to be copied
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Oct 2020 05:32:10 +0000 (07:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Oct 2020 19:47:56 +0000 (21:47 +0200)
commit9b7587a6afe493640aaecfc2ee6fe1149b997baf
tree073c4240adc2fb76c603a0bef76c0145a2fb417c
parent0138f51f933d8268677f4ea09adb971b83a45e7d
MINOR: connection: make sockaddr_alloc() take the address to be copied

Roughly half of the calls to sockadr_alloc() are made to copy an already
known address. Let's optionally pass it in argument so that the function
can handle the copy at the same time, this slightly simplifies its usage.
include/haproxy/connection.h
src/backend.c
src/connection.c
src/hlua.c
src/http_ana.c
src/peers.c
src/session.c
src/sink.c
src/tcpcheck.c