summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-07-12 16:27:22 -0400
committerGünther Deschner <gd@samba.org>2010-07-13 01:35:05 +0200
commit6555307aa11741171258541da2c13ce25d9e3f55 (patch)
tree45a29297a393b4c4b3c53d365547ae7853f3862c
parent1b51ddd37085e6dcc2fbe5056e902270d1efb076 (diff)
downloadsamba-6555307aa11741171258541da2c13ce25d9e3f55.tar.gz
samba-6555307aa11741171258541da2c13ce25d9e3f55.tar.bz2
samba-6555307aa11741171258541da2c13ce25d9e3f55.zip
s3-dceprc: Fix auth_length in auth3 response
Signed-off-by: Günther Deschner <gd@samba.org>
-rw-r--r--source3/rpc_client/cli_pipe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index aea6b36e4a..f4e42cc6a1 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -2715,7 +2715,6 @@ static NTSTATUS create_rpc_bind_auth3(struct rpc_pipe_client *cli,
DATA_BLOB *pauth_blob,
prs_struct *rpc_out)
{
- uint16_t auth_len = pauth_blob->length;
uint16_t frag_len = 0;
NTSTATUS status;
union dcerpc_payload u;
@@ -2735,14 +2734,14 @@ static NTSTATUS create_rpc_bind_auth3(struct rpc_pipe_client *cli,
}
/* Start building the frag length. */
- frag_len = RPC_HEADER_LEN + 4 /* pad */ + RPC_HDR_AUTH_LEN + auth_len;
+ frag_len = RPC_HEADER_LEN + 4 /* pad */ + RPC_HDR_AUTH_LEN + pauth_blob->length;
status = dcerpc_push_ncacn_packet(prs_get_mem_context(rpc_out),
DCERPC_PKT_AUTH3,
DCERPC_PFC_FLAG_FIRST |
DCERPC_PFC_FLAG_LAST,
frag_len,
- auth_len ? auth_len - RPC_HDR_AUTH_LEN : 0,
+ pauth_blob->length,
rpc_call_id,
u,
&blob);