summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-16 21:41:42 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-16 21:41:42 +0000
commitb6993a89af080d4d5c176ae9d539ff553f69c247 (patch)
treeecdd3b64c955fb75971ccf01c612b9eaeb970238 /source3/smbd
parent97f0c9d55014db221fdceaaf07318ae9df9688a1 (diff)
downloadsamba-b6993a89af080d4d5c176ae9d539ff553f69c247.tar.gz
samba-b6993a89af080d4d5c176ae9d539ff553f69c247.tar.bz2
samba-b6993a89af080d4d5c176ae9d539ff553f69c247.zip
!pass -> pass != NULL is wrong: !pass -> pass == NULL is correct. oops.
(This used to be commit 866e1018180a70ff2ffa39e6a5ce5f187eca2764)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/password.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 4df359f46c..1c9eb19759 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -471,7 +471,7 @@ BOOL pass_check_smb(char *user, char *domain,
pass = Get_Pwnam(user,True);
}
- if (pass != NULL)
+ if (pass == NULL)
{
DEBUG(3,("Couldn't find user %s\n",user));
return(False);
@@ -479,7 +479,7 @@ BOOL pass_check_smb(char *user, char *domain,
smb_pass = getsmbpwnam(user);
- if (smb_pass != NULL)
+ if (smb_pass == NULL)
{
DEBUG(3,("Couldn't find user %s in smb_passwd file.\n", user));
return(False);