summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c
index 280115eb90..1210b58fea 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,