diff options
author | Gerald Carter <jerry@samba.org> | 2000-07-07 06:20:46 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-07-07 06:20:46 +0000 |
commit | 61d2aad5dc2b212b11c981f1eca47efa627e9fc8 (patch) | |
tree | ca94301d86a2f6e06992a4eb32630174d171f326 /source/rpc_client/cli_use.c | |
parent | 12e2a21e1bc4c6fa02606d21cea4cb5a8b4d41a9 (diff) | |
download | samba-61d2aad5dc2b212b11c981f1eca47efa627e9fc8.tar.gz samba-61d2aad5dc2b212b11c981f1eca47efa627e9fc8.tar.xz samba-61d2aad5dc2b212b11c981f1eca47efa627e9fc8.zip |
More rpcclient merge issues:
* fixes some readline bugs from the merge
* first attempt at commands (spoolenum almost works)
* no changes to existing functions in HEAD; only additions
of new functions. I'll weed out what I can as I go.
--jerry
Diffstat (limited to 'source/rpc_client/cli_use.c')
-rw-r--r-- | source/rpc_client/cli_use.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/rpc_client/cli_use.c b/source/rpc_client/cli_use.c index 10997f028f4..43f8ec87173 100644 --- a/source/rpc_client/cli_use.c +++ b/source/rpc_client/cli_use.c @@ -48,7 +48,8 @@ static void cli_use_free(struct cli_use *cli) { if (cli->cli->initialised) { - cli_ulogoff(cli->cli); + if (cli->cli->fd != -1) + cli_ulogoff(cli->cli); cli_shutdown(cli->cli); } free(cli->cli); |