From 3d33bc10ed5dc827a7cabb74d229efea293e1bbf Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 22 Aug 2006 06:18:07 +0000 Subject: r17700: Despite our best hopes, the way module initialisation tends to happen, we make searches before things are initialised. Cope with this. Andrew Bartlett (This used to be commit daa1a61891ede404bcce72affb7094e5c452c689) --- source4/lib/ldb/modules/paged_searches.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4') diff --git a/source4/lib/ldb/modules/paged_searches.c b/source4/lib/ldb/modules/paged_searches.c index a867aab01c..809a59dce2 100644 --- a/source4/lib/ldb/modules/paged_searches.c +++ b/source4/lib/ldb/modules/paged_searches.c @@ -238,10 +238,10 @@ static int ps_search(struct ldb_module *module, struct ldb_request *req) private_data = talloc_get_type(module->private_data, struct private_data); /* check if paging is supported and if there is a any control */ - if (!private_data->paged_supported || req->controls) { - /* do not touch this request - * oaged controls not supported or - * explicit controls have been set */ + if (!private_data || !private_data->paged_supported || req->controls) { + /* do not touch this request paged controls not + * supported or explicit controls have been set or we + * are just not setup yet */ return ldb_next_request(module, req); } -- cgit