summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-17 01:09:33 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-17 01:09:33 +0200
commitf875669314ce1398367b85f962941dacef6fc828 (patch)
tree7f60ca698455296e445b861766a53e209da0ace8 /source4/librpc
parent1efbd5fbf6b0f606ed29a763e2adfa6f99c6beac (diff)
downloadsamba-f875669314ce1398367b85f962941dacef6fc828.tar.gz
samba-f875669314ce1398367b85f962941dacef6fc828.tar.bz2
samba-f875669314ce1398367b85f962941dacef6fc828.zip
Require passing in an event context to endpoint mapper utility function.
(This used to be commit 906b9fe158841c41789952601b36016af6621565)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 6f1ee03313..71c6d5f2cc 100644
--- a/source4/librpc/rpc/dcerpc_util.c
+++ b/source4/librpc/rpc/dcerpc_util.c
@@ -209,32 +209,20 @@ struct composite_context *dcerpc_epm_map_binding_send(TALLOC_CTX *mem_ctx,
struct epm_map_binding_state *s;
struct composite_context *pipe_connect_req;
struct cli_credentials *anon_creds;
- struct event_context *new_ev = NULL;
NTSTATUS status;
struct dcerpc_binding *epmapper_binding;
int i;
- /* Try to find event context in memory context in case passed
- * event_context (argument) was NULL. If there's none, just
- * create a new one.
- */
if (ev == NULL) {
- ev = event_context_find(mem_ctx);
- if (ev == NULL) {
- new_ev = event_context_init(mem_ctx);
- if (new_ev == NULL) return NULL;
- ev = new_ev;
- }
+ return NULL;
}
/* composite context allocation and setup */
c = composite_create(mem_ctx, ev);
if (c == NULL) {
- talloc_free(new_ev);
return NULL;
}
- talloc_steal(c, new_ev);
s = talloc_zero(c, struct epm_map_binding_state);
if (composite_nomem(s, c)) return c;