s3:libsmb: remove the cli_session_request as early as possible via a nb_connect_clean...
commite791b7753c070f977b750c36f8775da1e9332686
authorStefan Metzmacher <metze@samba.org>
Thu, 21 May 2015 01:00:17 +0000 (21 03:00 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 30 Jun 2015 02:19:07 +0000 (30 04:19 +0200)
tree2936ac1c9d8c99125db1fed9a5f2cbecc7d9b2f4
parentc4c55a1b91c18fcbb73fd4e886055700c1fda87e
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>
(cherry picked from commit 992be06f165c3d05e85d16baf514dba49f55d1ec)
source3/libsmb/smbsock_connect.c