From c8f5aad40af0741984ded2047931a77161f69ece Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 14 Jan 2007 13:40:53 +0000 Subject: [PATCH] r20760: also handle the case where no private data is attached to the module metze --- source/dsdb/samdb/ldb_modules/kludge_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dsdb/samdb/ldb_modules/kludge_acl.c b/source/dsdb/samdb/ldb_modules/kludge_acl.c index 7b2150bec8e..8876db0482c 100644 --- a/source/dsdb/samdb/ldb_modules/kludge_acl.c +++ b/source/dsdb/samdb/ldb_modules/kludge_acl.c @@ -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: