mirror of
https://github.com/samba-team/samba.git
synced 2025-01-19 10:03:58 +03:00
Fixed some compiler warnings.
This commit is contained in:
parent
4880f37e4e
commit
7c3090fb20
@ -67,7 +67,7 @@ static NTSTATUS sam_sync(struct cli_state *cli, unsigned char trust_passwd[16],
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < num_deltas; i++) {
|
for (i = 0; i < num_deltas; i++) {
|
||||||
SAM_ACCOUNT_INFO *acct;
|
SAM_ACCOUNT_INFO *a;
|
||||||
fstring acct_name, hex_nt_passwd, hex_lm_passwd;
|
fstring acct_name, hex_nt_passwd, hex_lm_passwd;
|
||||||
uchar lm_passwd[16], nt_passwd[16];
|
uchar lm_passwd[16], nt_passwd[16];
|
||||||
|
|
||||||
@ -76,29 +76,29 @@ static NTSTATUS sam_sync(struct cli_state *cli, unsigned char trust_passwd[16],
|
|||||||
if (hdr_deltas[i].type != SAM_DELTA_ACCOUNT_INFO)
|
if (hdr_deltas[i].type != SAM_DELTA_ACCOUNT_INFO)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
acct = &deltas[i].account_info;
|
a = &deltas[i].account_info;
|
||||||
|
|
||||||
unistr2_to_ascii(acct_name, &acct->uni_acct_name,
|
unistr2_to_ascii(acct_name, &a->uni_acct_name,
|
||||||
sizeof(acct_name) - 1);
|
sizeof(acct_name) - 1);
|
||||||
|
|
||||||
/* Decode hashes from password hash */
|
/* Decode hashes from password hash */
|
||||||
|
|
||||||
sam_pwd_hash(acct->user_rid, acct->pass.buf_lm_pwd,
|
sam_pwd_hash(a->user_rid, a->pass.buf_lm_pwd,
|
||||||
lm_passwd, 0);
|
lm_passwd, 0);
|
||||||
sam_pwd_hash(acct->user_rid, acct->pass.buf_nt_pwd,
|
sam_pwd_hash(a->user_rid, a->pass.buf_nt_pwd,
|
||||||
nt_passwd, 0);
|
nt_passwd, 0);
|
||||||
|
|
||||||
/* Encode as strings */
|
/* Encode as strings */
|
||||||
|
|
||||||
smbpasswd_sethexpwd(hex_lm_passwd, lm_passwd,
|
smbpasswd_sethexpwd(hex_lm_passwd, lm_passwd,
|
||||||
acct->acb_info);
|
a->acb_info);
|
||||||
smbpasswd_sethexpwd(hex_nt_passwd, nt_passwd,
|
smbpasswd_sethexpwd(hex_nt_passwd, nt_passwd,
|
||||||
acct->acb_info);
|
a->acb_info);
|
||||||
|
|
||||||
/* Display user info */
|
/* Display user info */
|
||||||
|
|
||||||
printf("%s:%d:%s:%s:%s:LCT-0\n", acct_name,
|
printf("%s:%d:%s:%s:%s:LCT-0\n", acct_name,
|
||||||
acct->user_rid, hex_lm_passwd, hex_nt_passwd,
|
a->user_rid, hex_lm_passwd, hex_nt_passwd,
|
||||||
smbpasswd_encode_acb_info(
|
smbpasswd_encode_acb_info(
|
||||||
deltas[i].account_info.acb_info));
|
deltas[i].account_info.acb_info));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user