]> granicus.if.org Git - libevent/commit
Avoid leaking fds on evconnlistener with no callback set
authorNick Mathewson <nickm@torproject.org>
Thu, 20 Dec 2012 16:47:09 +0000 (11:47 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 20 Dec 2012 16:47:09 +0000 (11:47 -0500)
commit69db2610be9b6b0d67f3dfda28a6059d3b2fb82f
tree5582d64f7cc50d1dc3a6f8e222725403d674cb7b
parent7e45739e26f0a2066a56591472d5e109a482674e
Avoid leaking fds on evconnlistener with no callback set

There's no way to retrieve an fd from an evconnlistener whose
callback has been cleared, so we had better close any such fd.

Found by coverity; CID 739725.
listener.c