diff options
Diffstat (limited to 'source4/lib/ldb/modules')
-rw-r--r-- | source4/lib/ldb/modules/paged_searches.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |