summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-29 15:53:18 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-29 15:53:18 +0000
commit902b53dcc0933045980ed5d7df4959eee6f016d3 (patch)
treee8d24ef7e1c9b2bd73a05c105c0466bd455d06c7 /source3
parent326b011b2df0dc83aa59fda9ab7dd8bcc0909a2e (diff)
downloadsamba-902b53dcc0933045980ed5d7df4959eee6f016d3.tar.gz
samba-902b53dcc0933045980ed5d7df4959eee6f016d3.tar.bz2
samba-902b53dcc0933045980ed5d7df4959eee6f016d3.zip
cli_nt_setup_creds() returns uint32 NT status code not a BOOL.
removed all comparisons to if (fn() == False), replaced with if (!fn()). (This used to be commit fdef97eb7c20a33b26104661cd010baebcb4bdcd)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index a98c6289b8..1612b8264f 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -278,7 +278,8 @@ static BOOL update_smbpassword_file(char *user, char *password)
/* Here, the flag is one, because we want to ignore the
XXXXXXX'd out password */
ret = change_oem_password( smbpw, password, True);
- if (ret == False) {
+ if (!ret)
+ {
DEBUG(3,("change_oem_password returned False\n"));
}
@@ -1181,7 +1182,7 @@ BOOL domain_client_validate( char *user, char *domain,
* Now start the NT Domain stuff :-).
*/
- if(cli_nt_session_open(&cli, PIPE_NETLOGON, &nt_pipe_fnum) == False) {
+ if (!cli_nt_session_open(&cli, PIPE_NETLOGON, &nt_pipe_fnum)) {
DEBUG(0,("domain_client_validate: unable to open the domain client session to \
machine %s. Error was : %s.\n", cli.desthost, cli_errstr(&cli)));
cli_nt_session_close(&cli, nt_pipe_fnum);
@@ -1191,7 +1192,7 @@ BOOL domain_client_validate( char *user, char *domain,
}
if(cli_nt_setup_creds(&cli, nt_pipe_fnum,
- cli.mach_acct, global_myname, trust_passwd, SEC_CHAN_WKSTA) == False)
+ cli.mach_acct, global_myname, trust_passwd, SEC_CHAN_WKSTA) != 0x0)
{
DEBUG(0,("domain_client_validate: unable to setup the PDC credentials to machine \
%s. Error was : %s.\n", cli.desthost, cli_errstr(&cli)));