summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/account_pol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/account_pol.c b/source3/lib/account_pol.c
index 067f346883..e415d10d8e 100644
--- a/source3/lib/account_pol.c
+++ b/source3/lib/account_pol.c
@@ -442,7 +442,7 @@ bool cache_account_policy_get(int field, uint32 *value)
struct db_context *get_account_pol_db( void )
{
- if ( db != NULL ) {
+ if ( db == NULL ) {
if ( !init_account_policy() ) {
return NULL;
}