BUG/MINOR: namespace: avoid closing fd when socket failed in my_socketat
authorWilliam Dauchy <w.dauchy@criteo.com>
Wed, 12 Feb 2020 20:23:20 +0000 (21:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Feb 2020 03:23:08 +0000 (04:23 +0100)
commitf7dcdc8a6f63b172360019beb6e1e22e7c98f17d
tree590d2394a0ab44a620658ec1eb16dc4f445daea4
parent332ded5f3a74997c0ec2c0df8f19d643bb92b024
BUG/MINOR: namespace: avoid closing fd when socket failed in my_socketat

we cannot return right after socket opening as we need to move back to
the default namespace first

this should fix github issue #500

this might be backported to all version >= 1.6

Fixes: b3e54fe387c7c1 ("MAJOR: namespace: add Linux network namespace
support")
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
src/namespace.c