diff options
author | Volker Lendecke <vl@samba.org> | 2008-12-19 14:27:20 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-12-19 14:53:29 +0100 |
commit | 4abdd3981e9688aaaf19173182ace7b1fdf93f6d (patch) | |
tree | 3151ce944a9e04956a29f2cc315832127f06fb57 /source3/libsmb/async_smb.c | |
parent | 1aff97bc48844afba5de48447fdcdcc02d163a97 (diff) | |
download | samba-4abdd3981e9688aaaf19173182ace7b1fdf93f6d.tar.gz samba-4abdd3981e9688aaaf19173182ace7b1fdf93f6d.tar.bz2 samba-4abdd3981e9688aaaf19173182ace7b1fdf93f6d.zip |
Pass "bytes_alignment" up through cli_request_send
This parameter makes smb_spice_chain add padding before the bytes field
Diffstat (limited to 'source3/libsmb/async_smb.c')
-rw-r--r-- | source3/libsmb/async_smb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libsmb/async_smb.c b/source3/libsmb/async_smb.c index 522d73fbd9..21ffa94fe7 100644 --- a/source3/libsmb/async_smb.c +++ b/source3/libsmb/async_smb.c @@ -394,6 +394,7 @@ static struct async_req *cli_request_chain(TALLOC_CTX *mem_ctx, uint8_t smb_command, uint8_t additional_flags, uint8_t wct, const uint16_t *vwv, + size_t bytes_alignment, uint16_t num_bytes, const uint8_t *bytes) { @@ -423,7 +424,7 @@ static struct async_req *cli_request_chain(TALLOC_CTX *mem_ctx, cli_async_req_destructor); if (!smb_splice_chain(&req->outbuf, smb_command, wct, vwv, - 0, num_bytes, bytes)) { + bytes_alignment, num_bytes, bytes)) { goto fail; } @@ -569,6 +570,7 @@ void cli_chain_uncork(struct cli_state *cli) * @param[in] additional_flags open_and_x wants to add oplock header flags * @param[in] wct How many words? * @param[in] vwv The words, already in network order + * @param[in] bytes_alignment How shall we align "bytes"? * @param[in] num_bytes How many bytes? * @param[in] bytes The data the request ships * @@ -581,6 +583,7 @@ struct async_req *cli_request_send(TALLOC_CTX *mem_ctx, uint8_t smb_command, uint8_t additional_flags, uint8_t wct, const uint16_t *vwv, + size_t bytes_alignment, uint16_t num_bytes, const uint8_t *bytes) { struct async_req *result; @@ -596,7 +599,7 @@ struct async_req *cli_request_send(TALLOC_CTX *mem_ctx, } result = cli_request_chain(mem_ctx, ev, cli, smb_command, - additional_flags, wct, vwv, + additional_flags, wct, vwv, bytes_alignment, num_bytes, bytes); if (result == NULL) { |