]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: namespaces: conn->target is not necessarily a server
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Dec 2014 12:47:55 +0000 (13:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Dec 2014 12:47:55 +0000 (13:47 +0100)
commit529c13933b1007cf75d38140f569e6f5e2c99e78
tree2992a3eed297d4ba988574a08ab2359dcaeff40f
parent57767b80329ceade67302aed4fd9760ed5f3d644
BUG/MAJOR: namespaces: conn->target is not necessarily a server

create_server_socket() used to dereference objt_server(conn->target),
but if the target is not a server (eg: a proxy) then it's NULL and we
get a segfault. This can be reproduced with a proxy using "dispatch"
with no server, even when namespaces are disabled, because that code
is not #ifdef'd. The fix consists in first checking if the target is
a server.

This fix does not need to be backported, this is 1.6-only.
src/proto_tcp.c