mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
s4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()
metze
This commit is contained in:
parent
b1a584f9dc
commit
31782e5295
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user