diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-23 11:29:54 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-23 11:29:54 +0000 |
commit | 656d2c75c98a8c454c0a3d6873b8a73ce6138e44 (patch) | |
tree | 1f83412f4e53e66e16fcb00d60a38a44206a6e6e /source3 | |
parent | be86f6555a74ca8eb321e25aef618f6e9ced731c (diff) | |
download | samba-656d2c75c98a8c454c0a3d6873b8a73ce6138e44.tar.gz samba-656d2c75c98a8c454c0a3d6873b8a73ce6138e44.tar.bz2 samba-656d2c75c98a8c454c0a3d6873b8a73ce6138e44.zip |
Don't try to continue if initialisation fails (merge from HEAD)
(This used to be commit ff3ec67e120d29db2b85ce444ce89a205ea7a067)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/account_pol.c | 6 |
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) { |