tsocket: make sure we delete the fd event before calling close()
commit57104760c0152b909772952ed83ec150340d43a0
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Sep 2010 21:57:34 +0000 (27 23:57 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 28 Sep 2010 01:26:49 +0000 (27 18:26 -0700)
tree0f2026318531cb88eac65b74f5b1db80634d67f0
parent53526de9f53185938ddce335cf700be0e949055d
tsocket: make sure we delete the fd event before calling close()

We got random double free errors, when getting events from
epoll_wait() and try to dereference the private talloc pointer
attached to it.

Before doing the close() in the tstream_disconnect_send() function
we need to delete the fd event.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Sep 28 01:02:55 UTC 2010 on sn-devel-104
(cherry picked from commit 38f505530ba06323a56c7d3914630efffcd12629)
lib/tsocket/tsocket_bsd.c