mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Some reformatting in netlogon_params_fetch_values().
Michael
(This used to be commit 24f13fb72e
)
This commit is contained in:
parent
2e47997e6e
commit
d48c5f1599
@ -35,13 +35,14 @@ static int netlogon_params_fetch_values(const char *key, REGVAL_CTR *regvals)
|
||||
{
|
||||
uint32 dwValue;
|
||||
|
||||
if ( !pdb_get_account_policy(AP_REFUSE_MACHINE_PW_CHANGE, &dwValue) )
|
||||
if (!pdb_get_account_policy(AP_REFUSE_MACHINE_PW_CHANGE, &dwValue)) {
|
||||
dwValue = 0;
|
||||
}
|
||||
|
||||
regval_ctr_addvalue( regvals, "RefusePasswordChange", REG_DWORD,
|
||||
(char*)&dwValue, sizeof(dwValue) );
|
||||
regval_ctr_addvalue(regvals, "RefusePasswordChange", REG_DWORD,
|
||||
(char*)&dwValue, sizeof(dwValue));
|
||||
|
||||
return regval_ctr_numvals( regvals );
|
||||
return regval_ctr_numvals(regvals);
|
||||
}
|
||||
|
||||
static int netlogon_params_fetch_subkeys(const char *key,
|
||||
|
Loading…
Reference in New Issue
Block a user