{
struct composite_context *auth_bind_req;
- s->pipe->binding = dcerpc_binding_dup(s->pipe, s->binding);
- if (composite_nomem(s->pipe->binding, c)) {
- return;
- }
+ s->pipe->binding = talloc_move(s->pipe, &s->binding);
auth_bind_req = dcerpc_pipe_auth_send(s->pipe, s->pipe->binding, s->table,
s->credentials, s->lp_ctx);
s = talloc_get_type(c->private_data, struct sec_conn_state);
s->pipe2->conn->flags = s->pipe->conn->flags;
- s->pipe2->binding = dcerpc_binding_dup(s->pipe2, s->binding);
- if (composite_nomem(s->pipe2->binding, c)) {
- return;
- }
+ s->pipe2->binding = talloc_move(s->pipe2, &s->binding);
composite_done(c);
}