s3:smbd: make sure smbXsrv_connection_disconnect_transport() closes the socket fd
authorStefan Metzmacher <metze@samba.org>
Fri, 3 Jul 2020 07:55:57 +0000 (09:55 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Jul 2020 15:54:41 +0000 (15:54 +0000)
commitab14a0d162472899c081c1cb477ac6c888b44e5d
tree3af9d9dfa49607e6fac23e6605d546868135d9fc
parentecef3fe077d6a44659c7bb9d30dfcab61c64f0e8
s3:smbd: make sure smbXsrv_connection_disconnect_transport() closes the socket fd

I assumed that TALLOC_FREE(xconn->transport.fde) would close the socket,
but until now we didn't use tevent_fd_set_auto_close().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11898

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
source3/smbd/process.c
source3/smbd/smb2_server.c