diff options
author | Jeremy Allison <jra@samba.org> | 2006-02-22 04:56:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:10:19 -0500 |
commit | 0d7f6d650dd3d2c77711d00ffb41e829bb49905f (patch) | |
tree | 3366e5b5f76b9e329ebbbf0aef8336968bc69727 /source3/libsmb | |
parent | 79c8591e2d1f255c8d363f331cca654beec1bd37 (diff) | |
download | samba-0d7f6d650dd3d2c77711d00ffb41e829bb49905f.tar.gz samba-0d7f6d650dd3d2c77711d00ffb41e829bb49905f.tar.bz2 samba-0d7f6d650dd3d2c77711d00ffb41e829bb49905f.zip |
r13614: First part of the bugfix for #3510 - net join fails
against server with schannel disabled. Second part
will come tomorrow (fixing net_rpc_join_ok()).
Jeremy.
(This used to be commit 7de1ee18619bf99c5db45692e085d0646e52378f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clientgen.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 55addd44a6..83664b0b32 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -358,7 +358,13 @@ struct cli_state *cli_initialise(struct cli_state *cli) BOOL cli_rpc_pipe_close(struct rpc_pipe_client *cli) { - BOOL ret = cli_close(cli->cli, cli->fnum); + BOOL ret; + + if (!cli) { + return False; + } + + ret = cli_close(cli->cli, cli->fnum); if (!ret) { DEBUG(0,("cli_rpc_pipe_close: cli_close failed on pipe %s, " |