summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-19 03:01:57 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-19 03:01:57 +0000
commit13e10b47fb65de32dcc9d54d42294564f8b39c74 (patch)
treea972f4fd6f7fc4e5b34f707fbdac46d377ff0426 /source4/librpc/rpc/dcerpc.c
parent22ef16aa441320fd0c93c1f266a74eb70cae87c5 (diff)
downloadsamba-13e10b47fb65de32dcc9d54d42294564f8b39c74.tar.gz
samba-13e10b47fb65de32dcc9d54d42294564f8b39c74.tar.bz2
samba-13e10b47fb65de32dcc9d54d42294564f8b39c74.zip
separate the reason and result codes in a bind_ack. This is needed for
interop with the opengroup dcerpc code (This used to be commit 8d9061dcd097ed7eee8d9ec531db65b1df8ac8e6)
Diffstat (limited to 'source4/librpc/rpc/dcerpc.c')
-rw-r--r--source4/librpc/rpc/dcerpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index aeeee092ce..bc5f38aa05 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -252,7 +252,8 @@ static NTSTATUS dcerpc_pull_bind_ack(DATA_BLOB *blob, TALLOC_CTX *mem_ctx,
NTSTATUS status;
BLOB_CHECK_BOUNDS(blob, *offset, 24);
- pkt->ctx_list[i].result = IVAL(blob->data, *offset);
+ pkt->ctx_list[i].result = SVAL(blob->data, *offset);
+ pkt->ctx_list[i].reason = SVAL(blob->data, 2 + *offset);
(*offset) += 4;
status = dcerpc_pull_syntax_id(blob, mem_ctx, offset, &pkt->ctx_list[i].syntax);
if (!NT_STATUS_IS_OK(status)) {