]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] interface binding: length must include the trailing zero
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Mar 2009 23:48:23 +0000 (00:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Mar 2009 23:48:23 +0000 (00:48 +0100)
commit604e83097f77b911cc4af16ecdfe5be8d825c19d
treeede25df04aabe9ce1d7391cd3900f7e2c9d88c2c
parent3a7d20781d8e8fee95765288dd4d83827c0e63fd
[BUG] interface binding: length must include the trailing zero

The interface length passed to the setsockopt(SO_BINDTODEVICE) must
include the trailing \0. Otherwise it will randomly fail.
src/backend.c
src/checks.c
src/proto_tcp.c