A brown paper bag bug fix for "net sam rights"
authorVolker Lendecke <vl@samba.org>
Thu, 10 Jul 2008 09:11:53 +0000 (11:11 +0200)
committerroot <root@bando.example.local>
Thu, 17 Jul 2008 13:27:46 +0000 (15:27 +0200)
(cherry picked from commit 8a455b012827cfb917473a160c5710a90490451a)

source/lib/account_pol.c

index 067f34688366f05b80a9048762cd8cad859d6ad7..e415d10d8ec2fec7e4f28733c6f974757fa70d2d 100644 (file)
@@ -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;
                }