summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clidfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index f4b52687f8..e663855ccf 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -127,7 +127,8 @@ static struct cli_state *do_connect(TALLOC_CTX *ctx,
zero_sockaddr(&ss);
/* have to open a new connection */
- if (!(c=cli_initialise_ex(get_cmdline_auth_info_signing_state(auth_info)))) {
+ c = cli_initialise_ex(get_cmdline_auth_info_signing_state(auth_info));
+ if (c == NULL) {
d_printf("Connection to %s failed\n", server_n);
if (c) {
cli_shutdown(c);