diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-05-02 10:42:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:51:23 -0500 |
commit | ef80490baf9ce38b505b4b322051ae6e3332d662 (patch) | |
tree | 104e9672090e8afe314a6b863e2fe9319ed900b5 /source/libsmb/clientgen.c | |
parent | b7703799f8899affda205eacb0bf79cf8e2b9362 (diff) | |
download | samba-ef80490baf9ce38b505b4b322051ae6e3332d662.tar.gz |
r446: Close the open NT pipes before the tdis.
Volker
Diffstat (limited to 'source/libsmb/clientgen.c')
-rw-r--r-- | source/libsmb/clientgen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c index 6edc83c9d79..b75d6be0a60 100644 --- a/source/libsmb/clientgen.c +++ b/source/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); |