s4:instancetype LDB module - use "ldb" pointer for referencing the LDB context
[ira/wip.git] / source4 / dsdb / samdb / ldb_modules / instancetype.c
index c557fe1eccddd32eb9be3d383272a2f0c523b592..21212bffa7ed3e474457121e8a7aed6d0bfa05a8 100644 (file)
@@ -137,7 +137,7 @@ static int instancetype_add(struct ldb_module *module, struct ldb_request *req)
                ac->module = module;
                ac->req = req;
                
-               ret = ldb_build_add_req(&ac->add_req, ldb_module_get_ctx(ac->module), ac,
+               ret = ldb_build_add_req(&ac->add_req, ldb, ac,
                                        ac->req->op.add.message,
                                        ac->req->controls,
                                        ac, it_add_callback,