Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Thu May 9 23:54:35 UTC 2019 on sn-devel-184
struct count_attrs_private *data = NULL;
struct loadparm_context *lp_ctx = NULL;
int ret;
+
+ ldb = ldb_module_get_ctx(module);
+
data = talloc_zero(module, struct count_attrs_private);
if (data == NULL) {
return ldb_oom(ldb);
}
- ldb = ldb_module_get_ctx(module);
lp_ctx = talloc_get_type(ldb_get_opaque(ldb, "loadparm"),
struct loadparm_context);