diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-09 11:32:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:34 -0500 |
commit | e74b3ed6f195e66cb5fa0f387cea0f59fb66711b (patch) | |
tree | 0e57da2f311045035ff0f6d63a4d016fecb3adc1 /source4/rpc_server | |
parent | ab9ca559269f9ef921eb3e6ec3007d2e249c6cfe (diff) | |
download | samba-e74b3ed6f195e66cb5fa0f387cea0f59fb66711b.tar.gz samba-e74b3ed6f195e66cb5fa0f387cea0f59fb66711b.tar.bz2 samba-e74b3ed6f195e66cb5fa0f387cea0f59fb66711b.zip |
r4618: - tidied up the alter_context client code a bit
- there is no alter_nak or alter_ack packet, its all done in an
alter_response
- auto-allocated the contex_ids
- tried to fix up the dcom code to work again with
alter_context. Jelmer, please take a look :)
(This used to be commit dd1c54add8884376601f2f8a56c01bfb8add030c)
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/dcerpc_server.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c index f0791e5928..c86ffb2cd0 100644 --- a/source4/rpc_server/dcerpc_server.c +++ b/source4/rpc_server/dcerpc_server.c @@ -580,22 +580,22 @@ static NTSTATUS dcesrv_alter(struct dcesrv_call_state *call) dcesrv_init_hdr(&pkt); pkt.auth_length = 0; pkt.call_id = call->pkt.call_id; - pkt.ptype = DCERPC_PKT_ALTER_ACK; + pkt.ptype = DCERPC_PKT_ALTER_RESP; pkt.pfc_flags = DCERPC_PFC_FLAG_FIRST | DCERPC_PFC_FLAG_LAST; - pkt.u.alter_ack.max_xmit_frag = 0x2000; - pkt.u.alter_ack.max_recv_frag = 0x2000; - pkt.u.alter_ack.assoc_group_id = call->pkt.u.bind.assoc_group_id; - pkt.u.alter_ack.secondary_address = NULL; - pkt.u.alter_ack.num_results = 1; - pkt.u.alter_ack.ctx_list = talloc_p(call, struct dcerpc_ack_ctx); - if (!pkt.u.alter_ack.ctx_list) { + pkt.u.alter_resp.max_xmit_frag = 0x2000; + pkt.u.alter_resp.max_recv_frag = 0x2000; + pkt.u.alter_resp.assoc_group_id = call->pkt.u.bind.assoc_group_id; + pkt.u.alter_resp.secondary_address = NULL; + pkt.u.alter_resp.num_results = 1; + pkt.u.alter_resp.ctx_list = talloc_p(call, struct dcerpc_ack_ctx); + if (!pkt.u.alter_resp.ctx_list) { return NT_STATUS_NO_MEMORY; } - pkt.u.alter_ack.ctx_list[0].result = result; - pkt.u.alter_ack.ctx_list[0].reason = reason; - GUID_from_string(NDR_GUID, &pkt.u.alter_ack.ctx_list[0].syntax.uuid); - pkt.u.alter_ack.ctx_list[0].syntax.if_version = NDR_GUID_VERSION; - pkt.u.alter_ack.auth_info = data_blob(NULL, 0); + pkt.u.alter_resp.ctx_list[0].result = result; + pkt.u.alter_resp.ctx_list[0].reason = reason; + GUID_from_string(NDR_GUID, &pkt.u.alter_resp.ctx_list[0].syntax.uuid); + pkt.u.alter_resp.ctx_list[0].syntax.if_version = NDR_GUID_VERSION; + pkt.u.alter_resp.auth_info = data_blob(NULL, 0); if (!dcesrv_auth_alter_ack(call, &pkt)) { return dcesrv_bind_nak(call, 0); |