diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-22 09:39:23 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-22 17:06:07 +0200 |
commit | 6d1757f1893e8f15c645eca44377de2f5a67232a (patch) | |
tree | 0b0077005c9c62eb4a2fb0fad3cab8f429d9e9f7 /source3/libsmb/clientgen.c | |
parent | 103413da8bd60f1d0dce7c1338db8d6ace312828 (diff) | |
download | samba-6d1757f1893e8f15c645eca44377de2f5a67232a.tar.gz samba-6d1757f1893e8f15c645eca44377de2f5a67232a.tar.bz2 samba-6d1757f1893e8f15c645eca44377de2f5a67232a.zip |
s3:libsmb: make use of cli_state_disconnect()
metze
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r-- | source3/libsmb/clientgen.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index c394197ad9..7a417ec6c0 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -321,10 +321,7 @@ static void _cli_shutdown(struct cli_state *cli) data_blob_free(&cli->secblob); data_blob_free(&cli->user_session_key); - if (cli->fd != -1) { - close(cli->fd); - } - cli->fd = -1; + cli_state_disconnect(cli); /* * Need to free pending first, they remove themselves |