From 52cee834d0693f7d7af42fc072cb1a8f5ecfb903 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 23 Mar 2003 00:10:35 +0000 Subject: Don't crash when initialising tdb fails (This used to be commit b18d02891be1ea3728239eee15a4aed3c3be2fea) --- source3/lib/account_pol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/account_pol.c b/source3/lib/account_pol.c index 2e619c0c6b..e8b382c7ab 100644 --- a/source3/lib/account_pol.c +++ b/source3/lib/account_pol.c @@ -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) { -- cgit