summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-16 17:33:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:40 -0500
commit69bbc374b1556d8d06b50ac02aee65a7b04e3798 (patch)
tree58738c8fc4af79b3ce42d104c6fe3a0b67df7d26 /source3
parentb29915d6113264bdce243005d29a1af9a8b69bde (diff)
downloadsamba-69bbc374b1556d8d06b50ac02aee65a7b04e3798.tar.gz
samba-69bbc374b1556d8d06b50ac02aee65a7b04e3798.tar.bz2
samba-69bbc374b1556d8d06b50ac02aee65a7b04e3798.zip
r17572: Fix the build
(This used to be commit acf237b3cd1b546c2744447d977d36a8e3ed4d10)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/smbmount.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c
index f1cd81198f..56b7e9e623 100644
--- a/source3/client/smbmount.c
+++ b/source3/client/smbmount.c
@@ -211,14 +211,14 @@ static struct cli_state *do_connection(char *the_service)
c->force_dos_errors = True;
}
- if (!cli_session_setup(c, username,
- password, strlen(password),
- password, strlen(password),
- workgroup)) {
+ if (!NT_STATUS_IS_OK(cli_session_setup(c, username,
+ password, strlen(password),
+ password, strlen(password),
+ workgroup))) {
/* if a password was not supplied then try again with a
null username */
if (password[0] || !username[0] ||
- !cli_session_setup(c, "", "", 0, "", 0, workgroup)) {
+ !NT_STATUS_IS_OK(cli_session_setup(c, "", "", 0, "", 0, workgroup))) {
DEBUG(0,("%d: session setup failed: %s\n",
sys_getpid(), cli_errstr(c)));
cli_shutdown(c);