summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-07-08 15:18:30 -0700
committerJeremy Allison <jra@samba.org>2010-07-08 15:18:30 -0700
commit7e134f179fe43bdc2e6d94262327199367a038a8 (patch)
tree3b5768454fc3b905bd859be389e3dd7ded1b3627 /source3
parent6b7e436871ec7cac1d08c830efaab95d8bb3afa3 (diff)
downloadsamba-7e134f179fe43bdc2e6d94262327199367a038a8.tar.gz
samba-7e134f179fe43bdc2e6d94262327199367a038a8.tar.bz2
samba-7e134f179fe43bdc2e6d94262327199367a038a8.zip
Change one more use of "struct rpc_hdr_info" -> "struct ncacn_packet_header"
Jeremy
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_pipe.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 9d3dc72ca2..9c6982bed2 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -3137,7 +3137,7 @@ static void rpc_bind_ntlmssp_api_done(struct tevent_req *subreq)
DATA_BLOB server_spnego_response = data_blob_null;
DATA_BLOB tmp_blob = data_blob_null;
prs_struct reply_pdu;
- struct rpc_hdr_info hdr;
+ struct ncacn_packet_header hdr;
struct rpc_hdr_auth_info hdr_auth;
NTSTATUS status;
@@ -3148,17 +3148,15 @@ static void rpc_bind_ntlmssp_api_done(struct tevent_req *subreq)
return;
}
- /* Get the auth blob from the reply. */
- if (!smb_io_rpc_hdr("rpc_hdr ", &hdr, &reply_pdu, 0)) {
- DEBUG(0, ("rpc_finish_spnego_ntlmssp_bind: Failed to "
- "unmarshall RPC_HDR.\n"));
- tevent_req_nterror(req, NT_STATUS_BUFFER_TOO_SMALL);
+ status = parse_rpc_header(state->cli, &hdr, &reply_pdu);
+ if (!NT_STATUS_IS_OK(status)) {
+ tevent_req_nterror(req, status);
return;
}
if (!prs_set_offset(
&reply_pdu,
- hdr.frag_len - hdr.auth_len - RPC_HDR_AUTH_LEN)) {
+ hdr.frag_length - hdr.auth_length - RPC_HDR_AUTH_LEN)) {
tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER);
return;
}
@@ -3168,9 +3166,9 @@ static void rpc_bind_ntlmssp_api_done(struct tevent_req *subreq)
return;
}
- server_spnego_response = data_blob(NULL, hdr.auth_len);
+ server_spnego_response = data_blob(NULL, hdr.auth_length);
prs_copy_data_out((char *)server_spnego_response.data, &reply_pdu,
- hdr.auth_len);
+ hdr.auth_length);
/* Check we got a valid auth response. */
if (!spnego_parse_auth_response(server_spnego_response, NT_STATUS_OK,