mirror of
https://github.com/samba-team/samba.git
synced 2025-02-07 01:58:28 +03:00
Don't crash when initialising tdb fails
This commit is contained in:
parent
10c2fe08b6
commit
b18d02891b
@ -118,7 +118,7 @@ BOOL account_policy_get(int field, uint32 *value)
|
||||
{
|
||||
fstring name;
|
||||
|
||||
init_account_policy();
|
||||
if(!init_account_policy())return False;
|
||||
|
||||
*value = 0;
|
||||
|
||||
@ -142,7 +142,7 @@ 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