From 31782e52955f4f9301611a1e94b52b880f2ae302 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 2 Aug 2010 10:21:36 +0200 Subject: [PATCH] s4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map() metze --- source4/librpc/rpc/dcerpc_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 280115eb908..1210b58fea0 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -118,6 +118,7 @@ struct epm_map_binding_state { struct GUID guid; struct epm_twr_t twr; struct epm_twr_t *twr_r; + uint32_t num_towers; struct epm_Map r; }; @@ -142,8 +143,6 @@ static void continue_epm_recv_binding(struct composite_context *ctx) c->status = dcerpc_pipe_connect_b_recv(ctx, c, &s->pipe); if (!composite_is_ok(c)) return; - s->pipe->conn->flags |= DCERPC_NDR_REF_ALLOC; - /* prepare requested binding parameters */ s->binding->object = s->table->syntax_id; @@ -156,6 +155,7 @@ static void continue_epm_recv_binding(struct composite_context *ctx) s->r.in.entry_handle = &s->handle; s->r.in.max_towers = 1; s->r.out.entry_handle = &s->handle; + s->r.out.num_towers = &s->num_towers; /* send request for an endpoint mapping - a rpc request on connected pipe */ subreq = dcerpc_epm_Map_r_send(s, c->event_ctx, -- 2.11.4.GIT