]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: sock: do not double-close the accepted socket on the error path
authorWilly Tarreau <w@1wt.eu>
Tue, 12 Apr 2022 05:49:11 +0000 (07:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 Apr 2022 05:49:11 +0000 (07:49 +0200)
commit8f6c0c32b8e4505af5fdbb82d059c25f98586713
tree9e8a75a4440fe702082e9199bb2bd467181bc7f1
parentce7a5e0967b09c8ac9b0078cc647ee0074be34f1
BUG/MINOR: sock: do not double-close the accepted socket on the error path

Coverity found in issue #1646 that I added a double-close bug in last
commit e4d09cedb ("MINOR: sock: check configured limits at the sock layer,
not the listener's") because the error path already closes the FD. No
backport needed.
src/sock.c