BUG/MINOR: listener: close before free in `listener_accept`
authorWilliam Dauchy <wdauchy@gmail.com>
Sun, 18 Oct 2020 16:37:43 +0000 (18:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Oct 2020 13:40:36 +0000 (15:40 +0200)
commit835712ad909fe1b36ee53f521d17bbc0a5df3794
tree753baf2048c4a5b2d8cd18d4d6b6465fe4ef2b82
parentf42d794d96c5a58c33637ab44ff699ab869d5caa
BUG/MINOR: listener: close before free in `listener_accept`

safer to close handle before the object is put back in the global pool.

this was introduced by commit 9378bbe0bef4005155d ("MEDIUM: listener:
use protocol->accept_conn() to accept a connection")

this should fix github issue #902

no backport needed.

Signed-off-by: William Dauchy <wdauchy@gmail.com>
src/listener.c