]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: don't use clear_addr() anymore, just release the address
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2019 09:16:41 +0000 (11:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 11:50:09 +0000 (13:50 +0200)
commit16aa4aff6bbc92d51c8b781ceb83b234f0b27dc2
tree7fd902ce0c201535436b822ac0e260010a6dd0cd
parente71fca81dd4871a853a4c7988d2cf67ebc763735
MINOR: connection: don't use clear_addr() anymore, just release the address

Now that we have dynamically allocated addresses, there's no need to
clear an address before reusing it, just release it. Note that this
is not equivalent to saying that an address is never zero, as shown in
assign_server_address() where an address 0.0.0.0 can still be assigned
to a connection for the time it takes to modify it.
src/backend.c