From b6993a89af080d4d5c176ae9d539ff553f69c247 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Fri, 16 Oct 1998 21:41:42 +0000 Subject: [PATCH] !pass -> pass != NULL is wrong: !pass -> pass == NULL is correct. oops. (This used to be commit 866e1018180a70ff2ffa39e6a5ce5f187eca2764) --- source3/smbd/password.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 4df359f46c3..1c9eb197591 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); -- 2.34.1