diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-10 22:39:39 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-10 22:45:50 +0200 |
commit | 07af8f2514c4fbc94487eb2234d4fc764481e06a (patch) | |
tree | b0252d6e43d85534c52691b12cf3ab0434dcaf4f | |
parent | 9d4dc69627b709d134ad0b8850a777ae33aaa4e7 (diff) | |
download | samba-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.
-rw-r--r-- | source4/client/client.c | 4 |
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; } /**************************************************************************** |