mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
Don't try to continue if initialisation fails (merge from HEAD)
This commit is contained in:
parent
5a577f8caf
commit
ff3ec67e12
@ -118,7 +118,8 @@ BOOL account_policy_get(int field, uint32 *value)
|
||||
{
|
||||
fstring name;
|
||||
|
||||
init_account_policy();
|
||||
if (!init_account_policy())
|
||||
return False;
|
||||
|
||||
*value = 0;
|
||||
|
||||
@ -142,7 +143,8 @@ BOOL account_policy_set(int field, uint32 value)
|
||||
{
|
||||
fstring name;
|
||||
|
||||
init_account_policy();
|
||||
if (!init_account_policy())
|
||||
return False;
|
||||
|
||||
fstrcpy(name, decode_account_policy_name(field));
|
||||
if (!*name) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user