summaryrefslogtreecommitdiff
path: root/source3/lib/account_pol.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/account_pol.c')
-rw-r--r--source3/lib/account_pol.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/account_pol.c b/source3/lib/account_pol.c
index 2e619c0c6b..b43f582d7c 100644
--- a/source3/lib/account_pol.c
+++ b/source3/lib/account_pol.c
@@ -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) {