Merge tag 'upstream/4.0.5+dfsg1' into samba_4.0_ivo
[abartlet/samba-debian.git] / source4 / torture / rpc / dsgetinfo.c
index 6122ff06037b308ffb1134c0e81328e30bca7b31..a0360e84041196dab3a5f7475d02c5f81452b2fc 100644 (file)
@@ -88,7 +88,7 @@ static const char *torture_get_ldap_base_dn(struct torture_context *tctx, struct
        }
 
        ldb_set_modules_dir(ldb,
-               talloc_asprintf(ldb, "%s/ldb", lpcfg_modulesdir(tctx->lp_ctx)));
+                           modules_path(ldb, "ldb"));
 
        ret = ldb_connect(ldb, ldap_url, 0, NULL);
        if (ret != LDB_SUCCESS) {