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