From 656d2c75c98a8c454c0a3d6873b8a73ce6138e44 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 23 Apr 2003 11:29:54 +0000 Subject: Don't try to continue if initialisation fails (merge from HEAD) (This used to be commit ff3ec67e120d29db2b85ce444ce89a205ea7a067) --- source3/lib/account_pol.c | 6 ++++-- 1 file 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) { -- cgit