r20760: also handle the case where no private data is attached to the module
authorStefan Metzmacher <metze@samba.org>
Sun, 14 Jan 2007 13:40:53 +0000 (13:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:40:46 +0000 (14:40 -0500)
metze
(This used to be commit c8f5aad40af0741984ded2047931a77161f69ece)

source4/dsdb/samdb/ldb_modules/kludge_acl.c

index 7b2150bec8e81a661c7ab1c71c6d7771ef824580..8876db0482cf2e739374386a1c5d6893b66ef142 100644 (file)
@@ -122,7 +122,7 @@ static int kludge_acl_callback(struct ldb_context *ldb, void *context, struct ld
        data = talloc_get_type(ac->module->private_data, struct kludge_private_data);
 
        if (ares->type == LDB_REPLY_ENTRY
-               && data->password_attrs) /* if we are not initialized just get through */
+           && data && data->password_attrs) /* if we are not initialized just get through */
        {
                switch (ac->user_type) {
                case SYSTEM: