summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-03-23 00:10:35 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-03-23 00:10:35 +0000
commit52cee834d0693f7d7af42fc072cb1a8f5ecfb903 (patch)
tree5d4305d62c03c05bf75c61a0cbd3dd9afdc7b50e
parent7c7054b45ed6db42d15ff478ff894d1789f2da11 (diff)
downloadsamba-52cee834d0693f7d7af42fc072cb1a8f5ecfb903.tar.gz
samba-52cee834d0693f7d7af42fc072cb1a8f5ecfb903.tar.bz2
samba-52cee834d0693f7d7af42fc072cb1a8f5ecfb903.zip
Don't crash when initialising tdb fails
(This used to be commit b18d02891be1ea3728239eee15a4aed3c3be2fea)
-rw-r--r--source3/lib/account_pol.c4
1 files changed, 2 insertions, 2 deletions
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) {