summaryrefslogtreecommitdiff
path: root/source3/client/smbspool.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/smbspool.c')
-rw-r--r--source3/client/smbspool.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index c9a7fbe10e..5783cbe138 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -429,9 +429,10 @@ static struct cli_state
}
- if (!cli_session_setup(cli, username, password, strlen(password)+1,
- password, strlen(password)+1,
- workgroup))
+ if (!NT_STATUS_IS_OK(cli_session_setup(cli, username,
+ password, strlen(password)+1,
+ password, strlen(password)+1,
+ workgroup)))
{
fprintf(stderr,"ERROR: Session setup failed: %s\n", cli_errstr(cli));
if (NT_STATUS_V(cli_nt_error(cli)) ==