]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: namespaces: don't fail if no namespace is used
authorWilly Tarreau <w@1wt.eu>
Tue, 20 Oct 2015 13:14:07 +0000 (15:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Oct 2015 13:29:00 +0000 (15:29 +0200)
commit70f289cf8d9e9bc456a7a519a522fe44a146054f
treeef6eb5e416626d83c4dec964063887af58b73a02
parent5d681ba9762bf829a7951a6d6a57597a7d5da2bc
BUG/MEDIUM: namespaces: don't fail if no namespace is used

Susheel Jalali reported a confusing bug in namespaces implementation.
If namespaces are enabled at build time (USE_NS=1) and *no* namespace
is used at all in the whole config file, my_socketat() returns -1 and
all socket bindings fail. This is because of a wrong condition in this
function. A possible workaround consists in creating some namespaces.
src/namespace.c