summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-02 17:04:22 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-02 17:04:22 +0100
commita1cc27814240bf50bd546dcfc8b80d3838a6a38d (patch)
tree04d7c24dcbbeb344fa36b5a0937015b44008da30 /source4/lib
parentcb77fca1cd4cb340ca619410195aa6895f848b92 (diff)
downloadsamba-a1cc27814240bf50bd546dcfc8b80d3838a6a38d.tar.gz
samba-a1cc27814240bf50bd546dcfc8b80d3838a6a38d.tar.bz2
samba-a1cc27814240bf50bd546dcfc8b80d3838a6a38d.zip
Remove use of global_loadparm during initialization of gensec.
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/rpc.c2
-rw-r--r--source4/lib/wmi/wmicore.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/source4/lib/registry/rpc.c b/source4/lib/registry/rpc.c
index 3a16ae1db5..117951ed03 100644
--- a/source4/lib/registry/rpc.c
+++ b/source4/lib/registry/rpc.c
@@ -486,7 +486,7 @@ _PUBLIC_ WERROR reg_open_remote(struct registry_context **ctx,
struct dcerpc_pipe *p;
struct rpc_registry_context *rctx;
- dcerpc_init();
+ dcerpc_init(lp_ctx);
rctx = talloc(NULL, struct rpc_registry_context);
diff --git a/source4/lib/wmi/wmicore.c b/source4/lib/wmi/wmicore.c
index a853f26035..7624946536 100644
--- a/source4/lib/wmi/wmicore.c
+++ b/source4/lib/wmi/wmicore.c
@@ -37,9 +37,10 @@ struct IWbemContext;
DEBUG(1, ("OK : %s\n", msg)); \
}
-void wmi_init(struct com_context **ctx, struct cli_credentials *credentials)
+void wmi_init(struct com_context **ctx, struct cli_credentials *credentials,
+ struct loadparm_context *lp_ctx)
{
- dcerpc_init();
+ dcerpc_init(lp_ctx);
ndr_table_init();
/* FIXME: Register DCOM proxies? */