]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: Do not attempt to close(2) fd -1
authorTim Duesterhus <tim@bastelstu.be>
Sun, 25 Nov 2018 19:03:39 +0000 (20:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Nov 2018 07:35:41 +0000 (08:35 +0100)
commit742e0f9f1f6e747372e2de3dc5cd86f5414eb7c6
tree2627787ed065af35bf2402cc2ab48255940cd2f9
parentda95fd901b0cfe9c8060d12344944cc69781c5b2
BUG/MINOR: mworker: Do not attempt to close(2) fd -1

Valgrind reports:

==3389== Warning: invalid file descriptor -1 in syscall close()

Check for >= 0 before closing.

This bug was introduced in commit ce83b4a5dd48c000dec68f9d551945d21e9ac7ac
and is specific to 1.9. No backport needed.
src/haproxy.c