summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-08-02 10:21:36 +0200
committerStefan Metzmacher <metze@samba.org>2010-08-02 17:42:50 +0200
commit31782e52955f4f9301611a1e94b52b880f2ae302 (patch)
tree61b2ae35e7d8c06590c9b5d1be5c6d06f7e057d0 /source4
parentb1a584f9dc67bee1ecde408620dd815be3533091 (diff)
downloadsamba-31782e52955f4f9301611a1e94b52b880f2ae302.tar.gz
samba-31782e52955f4f9301611a1e94b52b880f2ae302.tar.bz2
samba-31782e52955f4f9301611a1e94b52b880f2ae302.zip
s4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()
metze
Diffstat (limited to 'source4')
-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,