From c98c6aa5611f26ab591c50fcded1fc55e81a0d07 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 28 Aug 2005 02:37:14 +0000 Subject: r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000 - fixed ncacn_ip_tcp to use the generic async name resolution methods, so NBT names now work (as requested several times by abartlet!) - changed resolve_name() to take an event_context, so it doesn't cause the whole process to block - cleaned up the talloc_find_parent_bytype() calls to go via a cleaner event_context_find() call (This used to be commit b3d491b210a8b889a25efcb273e70fefbd01b7f7) --- source4/scripting/ejs/smbcalls_rpc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/scripting/ejs/smbcalls_rpc.c') diff --git a/source4/scripting/ejs/smbcalls_rpc.c b/source4/scripting/ejs/smbcalls_rpc.c index 6da8cb351c..4163896e71 100644 --- a/source4/scripting/ejs/smbcalls_rpc.c +++ b/source4/scripting/ejs/smbcalls_rpc.c @@ -28,6 +28,7 @@ #include "lib/messaging/irpc.h" #include "scripting/ejs/ejsrpc.h" #include "dlinklist.h" +#include "lib/events/events.h" /* state of a irpc 'connection' @@ -69,7 +70,7 @@ static int ejs_irpc_connect(MprVarHandle eid, int argc, char **argv) p->server_name = argv[0]; - ev = talloc_find_parent_bytype(mprMemCtx(), struct event_context); + ev = event_context_find(p); /* create a messaging context, looping as we have no way to allocate temporary server ids automatically */ @@ -150,7 +151,7 @@ static int ejs_rpc_connect(MprVarHandle eid, int argc, char **argv) cli_credentials_set_anonymous(creds); } - ev = talloc_find_parent_bytype(mprMemCtx(), struct event_context); + ev = event_context_find(mprMemCtx()); status = dcerpc_pipe_connect(this, &p, binding, iface->uuid, iface->if_version, -- cgit