1
0
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:
Andrew Bartlett -
parent 5a577f8caf
commit ff3ec67e12

View File

@ -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) {