s3:libsmb: remove the cli_session_request as early as possible via a nb_connect_clean...
authorStefan Metzmacher <metze@samba.org>
Thu, 21 May 2015 01:00:17 +0000 (03:00 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Jun 2015 15:08:17 +0000 (17:08 +0200)
commit992be06f165c3d05e85d16baf514dba49f55d1ec
treeaab0719c96a6d9a6ebbca4e0f151525fc8da829f
parent0d161e42d9aeb155eae2b04eccec497b21de8029
s3:libsmb: remove the cli_session_request as early as possible via a nb_connect_cleanup() hook

cli_session_request_send() is likely to use tevent_fd objects on the given
socket fd, so we need to destroy the request before closing the socket fd.

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>
source3/libsmb/smbsock_connect.c