diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-21 18:21:44 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-21 18:21:44 +0100 |
commit | e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c (patch) | |
tree | 5e7dd6c56c9886c4f8530faf92293d4a22684215 /source4/scripting/ejs/smbcalls_rpc.c | |
parent | 3c20b3eebafe46127a7b69cca573c6a128f8de89 (diff) | |
download | samba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.tar.gz samba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.tar.bz2 samba-e11c61bc5cd487dce06fc38bb0ee8c4e24b04e8c.zip |
Introduce mprLpCtx() similar to mprMemCtx() for loadparm_context used by
all EJS code.
(This used to be commit 184988866fe8e740f58e3683eefcaa70f8b51d11)
Diffstat (limited to 'source4/scripting/ejs/smbcalls_rpc.c')
-rw-r--r-- | source4/scripting/ejs/smbcalls_rpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/scripting/ejs/smbcalls_rpc.c b/source4/scripting/ejs/smbcalls_rpc.c index 44cfa16d7e..d1e49b4348 100644 --- a/source4/scripting/ejs/smbcalls_rpc.c +++ b/source4/scripting/ejs/smbcalls_rpc.c @@ -79,9 +79,9 @@ static int ejs_irpc_connect(MprVarHandle eid, int argc, char **argv) allocate temporary server ids automatically */ for (i=0;i<10000;i++) { p->msg_ctx = messaging_init(p, - lp_messaging_path(p, global_loadparm), + lp_messaging_path(p, mprLpCtx()), cluster_id(EJS_ID_BASE, i), - lp_iconv_convenience(global_loadparm), + lp_iconv_convenience(mprLpCtx()), ev); if (p->msg_ctx) break; } @@ -161,7 +161,7 @@ static int ejs_rpc_connect(MprVarHandle eid, int argc, char **argv) ev = event_context_find(mprMemCtx()); status = dcerpc_pipe_connect(this, &p, binding, iface, creds, ev, - global_loadparm); + mprLpCtx()); if (!NT_STATUS_IS_OK(status)) goto done; /* callers don't allocate ref vars in the ejs interface */ |