diff options
author | Luke Leighton <lkcl@samba.org> | 1999-12-02 16:31:24 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-12-02 16:31:24 +0000 |
commit | e9b8c7743a45b4d045892f9039075fb8cfbd84e5 (patch) | |
tree | f4375c000f75eca421511fca65bd376989361cfc /source3/rpc_client | |
parent | 10b82d30b782ad990fc3386a8f0101641780a14e (diff) | |
download | samba-e9b8c7743a45b4d045892f9039075fb8cfbd84e5.tar.gz samba-e9b8c7743a45b4d045892f9039075fb8cfbd84e5.tar.bz2 samba-e9b8c7743a45b4d045892f9039075fb8cfbd84e5.zip |
default SID map now reads in "trusted domains" from smb.conf.
(This used to be commit f0946d1ccafeb5f541935b41f2d54bcbc06797ed)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_use.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_use.c b/source3/rpc_client/cli_use.c index 99cdb129f7..69e46c081b 100644 --- a/source3/rpc_client/cli_use.c +++ b/source3/rpc_client/cli_use.c @@ -43,9 +43,15 @@ terminate client connection ****************************************************************************/ static void cli_use_free(struct cli_use *cli) { - cli_ulogoff(cli->cli); - cli_shutdown(cli->cli); - free(cli->cli); + if (cli->cli != NULL) + { + if (cli->cli->initialised) + { + cli_ulogoff(cli->cli); + cli_shutdown(cli->cli); + } + free(cli->cli); + } free(cli); } |