]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: proto_tcp: don't try to bind to a foreign address if sin_family is unknown
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Dec 2011 20:25:11 +0000 (21:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Dec 2011 16:33:24 +0000 (17:33 +0100)
commit5dc1e98905154d883dd1d5d357183f37ce202a7e
treeb340637feb2e2c811253c6b91bd4a1e10db7ebaf
parent5e205524ad24003ecc4dbb435066aebe7ed58d95
BUG: proto_tcp: don't try to bind to a foreign address if sin_family is unknown

This is 1.5-specific. It causes issues with transparent source binding involving
hdr_ip. We must not try to bind() to a foreign address when the family is not set,
and we must set the family when an address is set.
src/backend.c
src/proto_tcp.c