summaryrefslogtreecommitdiffstats
path: root/source/rpc_client/cli_use.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-07-15 08:37:17 +0000
committerGerald Carter <jerry@samba.org>2000-07-15 08:37:17 +0000
commitf8509356178deb7e78836d1f5aceb96677ac738b (patch)
tree65d582cde232e6eb80bf8af359cac20006e0c9f2 /source/rpc_client/cli_use.c
parentb2317babb557f5bce390c7162c9936f5d46f4da3 (diff)
downloadsamba-f8509356178deb7e78836d1f5aceb96677ac738b.tar.gz
samba-f8509356178deb7e78836d1f5aceb96677ac738b.tar.xz
samba-f8509356178deb7e78836d1f5aceb96677ac738b.zip
Lots of changes but no real progress in functionality.
more changes to remove the ncarpc_l_* stuff. Fixed some cut and paste errors from TNG There are very subtle bugs in this code. I'll work on simplifying them in round two or three. --jerry
Diffstat (limited to 'source/rpc_client/cli_use.c')
-rw-r--r--source/rpc_client/cli_use.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/rpc_client/cli_use.c b/source/rpc_client/cli_use.c
index 43f8ec87173..7cc4477b579 100644
--- a/source/rpc_client/cli_use.c
+++ b/source/rpc_client/cli_use.c
@@ -48,6 +48,7 @@ static void cli_use_free(struct cli_use *cli)
{
if (cli->cli->initialised)
{
+ /* only logoff if we have a valid socket */
if (cli->cli->fd != -1)
cli_ulogoff(cli->cli);
cli_shutdown(cli->cli);