summaryrefslogtreecommitdiff
path: root/source4/client/client.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-10 22:39:39 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-10 22:45:50 +0200
commit07af8f2514c4fbc94487eb2234d4fc764481e06a (patch)
treeb0252d6e43d85534c52691b12cf3ab0434dcaf4f /source4/client/client.c
parent9d4dc69627b709d134ad0b8850a777ae33aaa4e7 (diff)
downloadsamba-07af8f2514c4fbc94487eb2234d4fc764481e06a.tar.gz
samba-07af8f2514c4fbc94487eb2234d4fc764481e06a.tar.bz2
samba-07af8f2514c4fbc94487eb2234d4fc764481e06a.zip
s4:client/client.c - fix wrong return codes in "do_connect"
Detected by the Solaris cc compiler.
Diffstat (limited to 'source4/client/client.c')
-rw-r--r--source4/client/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/client/client.c b/source4/client/client.c
index 910a66657e..ee5357f1bf 100644
--- a/source4/client/client.c
+++ b/source4/client/client.c
@@ -3088,10 +3088,10 @@ static bool do_connect(struct smbclient_context *ctx,
d_printf("Connection to \\\\%s\\%s failed - %s\n",
server, share, nt_errstr(status));
talloc_free(ctx);
- return NULL;
+ return false;
}
- return ctx;
+ return true;
}
/****************************************************************************