Author: vlendec
Date: 2006-08-16 17:33:47 +0000 (Wed, 16 Aug 2006)
New Revision: 17572

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17572

Log:
Fix the build
Modified:
   branches/SAMBA_3_0/source/client/smbmount.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/smbmount.c
===================================================================
--- branches/SAMBA_3_0/source/client/smbmount.c 2006-08-16 17:14:16 UTC (rev 
17571)
+++ branches/SAMBA_3_0/source/client/smbmount.c 2006-08-16 17:33:47 UTC (rev 
17572)
@@ -211,14 +211,14 @@
                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);

Reply via email to