summaryrefslogtreecommitdiff
path: root/source3/libsmb/pwd_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb/pwd_cache.c')
-rw-r--r--source3/libsmb/pwd_cache.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/libsmb/pwd_cache.c b/source3/libsmb/pwd_cache.c
index 9680349a86..548777d434 100644
--- a/source3/libsmb/pwd_cache.c
+++ b/source3/libsmb/pwd_cache.c
@@ -85,16 +85,8 @@ BOOL pwd_compare(struct pwd_info *pwd1, struct pwd_info *pwd2)
pwd_obfuscate(pwd2);
return True;
}
- if (pwd1->crypted || pwd2->crypted)
- {
- DEBUG(5,("pwd_compare: cannot compare crypted passwords\n"));
- pwd_obfuscate(pwd1);
- pwd_obfuscate(pwd2);
- return False;
- }
- if (!pwd1->crypted && !pwd2->crypted &&
- !pwd1->null_pwd && !pwd2->null_pwd &&
+ if (!pwd1->null_pwd && !pwd2->null_pwd &&
!pwd1->cleartext && !pwd2->cleartext)
{
if (memcmp(pwd1->smb_nt_pwd, pwd2->smb_nt_pwd, 16) == 0)