summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/cliconnect.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-01-22 01:22:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:07 -0500
commit6f56a5be2e7e9259f020dd20c37d79f8f95c3815 (patch)
tree0dcfb64cfa421debb48d9fc89ee04dc1f8d8b4c8 /source3/libsmb/cliconnect.c
parent5876aa1a78141593c7f085f158568df663ee0352 (diff)
downloadsamba-6f56a5be2e7e9259f020dd20c37d79f8f95c3815.tar.gz
samba-6f56a5be2e7e9259f020dd20c37d79f8f95c3815.tar.xz
samba-6f56a5be2e7e9259f020dd20c37d79f8f95c3815.zip
r4917: Merge some of Derrell.Lipman@UnwiredUniverse.com obvious fixes.
Added text explaining units in pdbedit time fields. Jeremy. (This used to be commit 3d09c15d8f06ad06fae362291a6c986f7b6107e6)
Diffstat (limited to 'source3/libsmb/cliconnect.c')
-rw-r--r--source3/libsmb/cliconnect.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 29a9533bd24..659e1242922 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -989,7 +989,12 @@ BOOL cli_tdis(struct cli_state *cli)
if (!cli_receive_smb(cli))
return False;
- return !cli_is_error(cli);
+ if (cli_is_error(cli)) {
+ return False;
+ }
+
+ cli->cnum = -1;
+ return True;
}
/****************************************************************************