summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-05-02 10:42:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:23 -0500
commit5c2cd8aa38771cba24ce3872b35adefbd9050982 (patch)
tree7f0d2c84702b1f076d5f8dedb0d5241e64080eac /source3/libsmb
parentfc52c330aed4bbfd406d96cccc273c8e551255c2 (diff)
downloadsamba-5c2cd8aa38771cba24ce3872b35adefbd9050982.tar.gz
samba-5c2cd8aa38771cba24ce3872b35adefbd9050982.tar.bz2
samba-5c2cd8aa38771cba24ce3872b35adefbd9050982.zip
r446: Close the open NT pipes before the tdis.
Volker (This used to be commit ef80490baf9ce38b505b4b322051ae6e3332d662)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 6edc83c9d7..b75d6be0a6 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -367,6 +367,9 @@ void cli_nt_netlogon_netsec_session_close(struct cli_state *cli)
void cli_close_connection(struct cli_state *cli)
{
+ cli_nt_session_close(cli);
+ cli_nt_netlogon_netsec_session_close(cli);
+
/*
* tell our peer to free his resources. Wihtout this, when an
* application attempts to do a graceful shutdown and calls
@@ -382,9 +385,6 @@ void cli_close_connection(struct cli_state *cli)
if ( (cli->cnum != (uint16)-1) && (cli->smb_rw_error != DO_NOT_DO_TDIS ) )
cli_tdis(cli);
- cli_nt_session_close(cli);
- cli_nt_netlogon_netsec_session_close(cli);
-
SAFE_FREE(cli->outbuf);
SAFE_FREE(cli->inbuf);