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 | f0946d1ccafeb5f541935b41f2d54bcbc06797ed (patch) | |
| tree | c37855af7cf034be1d1922052fe3f07f96862290 /source/rpc_client/cli_use.c | |
| parent | 50dc709fa95e86ebe2b3132176241cb3a2cc4e36 (diff) | |
| download | samba-f0946d1ccafeb5f541935b41f2d54bcbc06797ed.tar.gz samba-f0946d1ccafeb5f541935b41f2d54bcbc06797ed.tar.xz samba-f0946d1ccafeb5f541935b41f2d54bcbc06797ed.zip | |
default SID map now reads in "trusted domains" from smb.conf.
Diffstat (limited to 'source/rpc_client/cli_use.c')
| -rw-r--r-- | source/rpc_client/cli_use.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/rpc_client/cli_use.c b/source/rpc_client/cli_use.c index 99cdb129f75..69e46c081bd 100644 --- a/source/rpc_client/cli_use.c +++ b/source/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); } |
