1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

r20760: also handle the case where no private data is attached to the module

metze
This commit is contained in:
Stefan Metzmacher 2007-01-14 13:40:53 +00:00 committed by Gerald (Jerry) Carter
parent 93e6dbaf5b
commit c8f5aad40a

View 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); data = talloc_get_type(ac->module->private_data, struct kludge_private_data);
if (ares->type == LDB_REPLY_ENTRY 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) { switch (ac->user_type) {
case SYSTEM: case SYSTEM: