diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-01-09 16:00:23 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-01-16 18:21:40 +0100 |
commit | dc561b7e2d92988adbcc390116f08e6b5266cccc (patch) | |
tree | cb9a1ae99e1df26696eafa8b46d2a2c92e833b42 /source3 | |
parent | 7a62a3557773133456d8c4521d9440cb1aaef273 (diff) | |
download | samba-dc561b7e2d92988adbcc390116f08e6b5266cccc.tar.gz samba-dc561b7e2d92988adbcc390116f08e6b5266cccc.tar.xz samba-dc561b7e2d92988adbcc390116f08e6b5266cccc.zip |
dcerpc.idl: make use of union dcerpc_bind_ack_reason and fix all callers.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Thu Jan 16 18:21:40 CET 2014 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 2 | ||||
-rw-r--r-- | source3/rpc_server/srv_pipe.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 1b049de4c0..e4e2bfe17f 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -1620,7 +1620,7 @@ static bool check_bind_response(const struct dcerpc_bind_ack *r, if (r->num_results != 0x1 || ctx.result != 0) { DEBUG(2,("bind_rpc_pipe: bind denied results: %d reason: %x\n", - r->num_results, ctx.reason)); + r->num_results, ctx.reason.value)); } DEBUG(5,("check_bind_response: accepted!\n")); diff --git a/source3/rpc_server/srv_pipe.c b/source3/rpc_server/srv_pipe.c index b219ee98b2..3f6f3dc38e 100644 --- a/source3/rpc_server/srv_pipe.c +++ b/source3/rpc_server/srv_pipe.c @@ -651,13 +651,13 @@ static bool api_pipe_bind_req(struct pipes_struct *p, pkt->u.bind.ctx_list[0].context_id)) { bind_ack_ctx.result = 0; - bind_ack_ctx.reason = 0; + bind_ack_ctx.reason.value = 0; bind_ack_ctx.syntax = pkt->u.bind.ctx_list[0].transfer_syntaxes[0]; } else { p->pipe_bound = False; /* Rejection reason: abstract syntax not supported */ bind_ack_ctx.result = DCERPC_BIND_PROVIDER_REJECT; - bind_ack_ctx.reason = DCERPC_BIND_REASON_ASYNTAX; + bind_ack_ctx.reason.value = DCERPC_BIND_REASON_ASYNTAX; bind_ack_ctx.syntax = ndr_syntax_id_null; } @@ -1009,13 +1009,13 @@ static bool api_pipe_alter_context(struct pipes_struct *p, pkt->u.bind.ctx_list[0].context_id)) { bind_ack_ctx.result = 0; - bind_ack_ctx.reason = 0; + bind_ack_ctx.reason.value = 0; bind_ack_ctx.syntax = pkt->u.bind.ctx_list[0].transfer_syntaxes[0]; } else { p->pipe_bound = False; /* Rejection reason: abstract syntax not supported */ bind_ack_ctx.result = DCERPC_BIND_PROVIDER_REJECT; - bind_ack_ctx.reason = DCERPC_BIND_REASON_ASYNTAX; + bind_ack_ctx.reason.value = DCERPC_BIND_REASON_ASYNTAX; bind_ack_ctx.syntax = ndr_syntax_id_null; } |