summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-03-30 12:58:38 +0000
committerLuke Leighton <lkcl@samba.org>2000-03-30 12:58:38 +0000
commit86b230d7b5e146d80cccda0bd42903e68f727752 (patch)
treee1a4ddb128190217c3fce83500405d30727cfd20
parentcdeb293b5c7fa74759a7a76b247d17bced2d704d (diff)
downloadsamba-86b230d7b5e146d80cccda0bd42903e68f727752.tar.gz
oops...
-rw-r--r--source/libsmb/pwd_cache.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/source/libsmb/pwd_cache.c b/source/libsmb/pwd_cache.c
index c218ad40f20..4c75aaee1f6 100644
--- a/source/libsmb/pwd_cache.c
+++ b/source/libsmb/pwd_cache.c
@@ -55,15 +55,15 @@ compares two passwords. hmm, not as trivial as expected. hmm.
****************************************************************************/
BOOL pwd_compare(const struct pwd_info *pwd1, const struct pwd_info *pwd2)
{
- if (pwd1.crypted || pwd2.crypted)
+ if (pwd1->crypted || pwd2->crypted)
{
DEBUG(0,("pwd_compare: cannot compare crypted passwords\n"));
return True;
}
- if (pwd1.cleartext && pwd2.cleartext)
+ if (pwd1->cleartext && pwd2->cleartext)
{
- if (strequal(pwd1.password, pwd2.password))
+ if (strequal(pwd1->password, pwd2->password))
{
ZERO_STRUCT(pwd1);
ZERO_STRUCT(pwd2);
@@ -71,7 +71,7 @@ BOOL pwd_compare(const struct pwd_info *pwd1, const struct pwd_info *pwd2)
return True;
}
}
- if (pwd1.null_pwd && pwd2.null_pwd)
+ if (pwd1->null_pwd && pwd2->null_pwd)
{
ZERO_STRUCT(pwd1);
ZERO_STRUCT(pwd2);
@@ -79,17 +79,17 @@ BOOL pwd_compare(const struct pwd_info *pwd1, const struct pwd_info *pwd2)
return True;
}
- if (!pwd1.null_pwd && !pwd2.null_pwd &&
- !pwd1.cleartext && !pwd2.cleartext)
+ if (!pwd1->null_pwd && !pwd2->null_pwd &&
+ !pwd1->cleartext && !pwd2->cleartext)
{
- dump_data_pw("pwd compare: nt#1\n", pwd1.smb_nt_pwd, 16);
- dump_data_pw("pwd compare: nt#2\n", pwd2.smb_nt_pwd, 16);
+ dump_data_pw("pwd compare: nt#1\n", pwd1->smb_nt_pwd, 16);
+ dump_data_pw("pwd compare: nt#2\n", pwd2->smb_nt_pwd, 16);
- dump_data_pw("pwd compare: lm#1\n", pwd1.smb_lm_pwd, 16);
- dump_data_pw("pwd compare: lm#2\n", pwd2.smb_lm_pwd, 16);
+ dump_data_pw("pwd compare: lm#1\n", pwd1->smb_lm_pwd, 16);
+ dump_data_pw("pwd compare: lm#2\n", pwd2->smb_lm_pwd, 16);
- if (memcmp(pwd1.smb_nt_pwd, pwd2.smb_nt_pwd, 16) == 0 &&
- memcmp(pwd1.smb_lm_pwd, pwd2.smb_lm_pwd, 16) == 0)
+ if (memcmp(pwd1->smb_nt_pwd, pwd2->smb_nt_pwd, 16) == 0 &&
+ memcmp(pwd1->smb_lm_pwd, pwd2->smb_lm_pwd, 16) == 0)
{
ZERO_STRUCT(pwd1);
ZERO_STRUCT(pwd2);