From 1687e73abe84104ea0a3d396878ad30051963b1b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 14 Jan 2007 13:40:53 +0000 Subject: r20760: also handle the case where no private data is attached to the module metze (This used to be commit c8f5aad40af0741984ded2047931a77161f69ece) --- source4/dsdb/samdb/ldb_modules/kludge_acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/kludge_acl.c b/source4/dsdb/samdb/ldb_modules/kludge_acl.c index 7b2150bec8..8876db0482 100644 --- a/source4/dsdb/samdb/ldb_modules/kludge_acl.c +++ b/source4/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: -- cgit