summaryrefslogtreecommitdiffstats
path: root/source/rpc_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-09 11:32:12 +0000
committerAndrew Tridgell <tridge@samba.org>2005-01-09 11:32:12 +0000
commit6766a0959d36d52350e44b4c9c4017a2b4c497aa (patch)
tree07e66c8217ae25afc5610397aa184be90812188b /source/rpc_server
parent717c4154b7620b74e8f955da368de1a47515cd90 (diff)
downloadsamba-6766a0959d36d52350e44b4c9c4017a2b4c497aa.tar.gz
samba-6766a0959d36d52350e44b4c9c4017a2b4c497aa.tar.xz
samba-6766a0959d36d52350e44b4c9c4017a2b4c497aa.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 :)
Diffstat (limited to 'source/rpc_server')
-rw-r--r--source/rpc_server/dcerpc_server.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/rpc_server/dcerpc_server.c b/source/rpc_server/dcerpc_server.c
index f0791e59281..c86ffb2cd03 100644
--- a/source/rpc_server/dcerpc_server.c
+++ b/source/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);