libcli/smb: close the socket fd at the end of smbXcli_conn_disconnect()
authorStefan Metzmacher <metze@samba.org>
Thu, 28 May 2015 11:09:11 +0000 (13:09 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Jun 2015 15:08:18 +0000 (17:08 +0200)
commit46e1aa22b12eacc3567f7897716ae07837545c23
tree78c2110f49bd3861e4cc0e77c2610addaa953f4d
parent26c4b3fc9db507557b2539dd7d1f9e593c3fa35a
libcli/smb: close the socket fd at the end of smbXcli_conn_disconnect()

We need to cancel all pending requests before closing the socket fds,
otherwise we cause problem with the interaction with the epoll event backend.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
libcli/smb/smbXcli_base.c