]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: make sure all address producers allocate their address
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Jul 2019 17:04:47 +0000 (19:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Jul 2019 11:50:09 +0000 (13:50 +0200)
commitca79f59365c03c7c7422c80e9d9986f8834a95b8
treeef5b30fb961c1839d5e7913bb9ec2f4ae79a9745
parentff5d57b02250f6c26cfb622cf253c58fed2f6a84
MEDIUM: connection: make sure all address producers allocate their address

This commit places calls to sockaddr_alloc() at the places where an address
is needed, and makes sure that the allocation is properly tested. This does
not add too many error paths since connection allocations are already in the
vicinity and share the same error paths. For the two cases where a
clear_addr() was called, instead the address was not allocated.
include/proto/connection.h
src/backend.c
src/checks.c
src/connection.c
src/hlua.c
src/http_ana.c
src/peers.c
src/session.c