Skip to content

Commit

Permalink
s3: libsmb: Add uint16_t addtional_flags2 to cli_smb_req_create().
Browse files Browse the repository at this point in the history
Not yet used.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12165

Signed-off-by: Jeremy Allison <[email protected]>
Reviewed-by: Uri Simchoni <[email protected]>
  • Loading branch information
jrasamba authored and urisimchoni committed Aug 19, 2016
1 parent 76bbc4c commit 79c8b75
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions source3/include/async_smb.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
struct cli_state *cli,
uint8_t smb_command,
uint8_t additional_flags,
uint16_t additional_flags2,
uint8_t wct, uint16_t *vwv,
int iov_count,
struct iovec *bytes_iov);
Expand Down
2 changes: 1 addition & 1 deletion source3/libsmb/async_smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
struct cli_state *cli,
uint8_t smb_command,
uint8_t additional_flags,
uint16_t additional_flags2,
uint8_t wct, uint16_t *vwv,
int iov_count,
struct iovec *bytes_iov)
{
struct cli_smb_req_state *state;
uint8_t clear_flags = 0;
uint16_t additional_flags2 = 0;
uint16_t clear_flags2 = 0;

state = talloc_zero(mem_ctx, struct cli_smb_req_state);
Expand Down
6 changes: 3 additions & 3 deletions source3/libsmb/cliconnect.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ struct tevent_req *cli_session_setup_guest_create(TALLOC_CTX *mem_ctx,
state->bytes.iov_base = (void *)bytes;
state->bytes.iov_len = talloc_get_size(bytes);

subreq = cli_smb_req_create(state, ev, cli, SMBsesssetupX, 0, 13, vwv,
1, &state->bytes);
subreq = cli_smb_req_create(state, ev, cli, SMBsesssetupX, 0, 0, 13,
vwv, 1, &state->bytes);
if (subreq == NULL) {
TALLOC_FREE(req);
return NULL;
Expand Down Expand Up @@ -2549,7 +2549,7 @@ struct tevent_req *cli_tcon_andx_create(TALLOC_CTX *mem_ctx,
state->bytes.iov_base = (void *)bytes;
state->bytes.iov_len = talloc_get_size(bytes);

subreq = cli_smb_req_create(state, ev, cli, SMBtconX, 0, 4, vwv,
subreq = cli_smb_req_create(state, ev, cli, SMBtconX, 0, 0, 4, vwv,
1, &state->bytes);
if (subreq == NULL) {
TALLOC_FREE(req);
Expand Down
6 changes: 3 additions & 3 deletions source3/libsmb/clifile.c
Original file line number Diff line number Diff line change
Expand Up @@ -2464,7 +2464,7 @@ struct tevent_req *cli_openx_create(TALLOC_CTX *mem_ctx,
state->bytes.iov_len = talloc_get_size(bytes);

subreq = cli_smb_req_create(state, ev, cli, SMBopenX, additional_flags,
15, state->vwv, 1, &state->bytes);
0, 15, state->vwv, 1, &state->bytes);
if (subreq == NULL) {
TALLOC_FREE(req);
return NULL;
Expand Down Expand Up @@ -2726,8 +2726,8 @@ struct tevent_req *cli_close_create(TALLOC_CTX *mem_ctx,
SSVAL(state->vwv+0, 0, fnum);
SIVALS(state->vwv+1, 0, -1);

subreq = cli_smb_req_create(state, ev, cli, SMBclose, 0, 3, state->vwv,
0, NULL);
subreq = cli_smb_req_create(state, ev, cli, SMBclose, 0, 0,
3, state->vwv, 0, NULL);
if (subreq == NULL) {
TALLOC_FREE(req);
return NULL;
Expand Down
4 changes: 2 additions & 2 deletions source3/libsmb/clireadwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ struct tevent_req *cli_read_andx_create(TALLOC_CTX *mem_ctx,
}
}

subreq = cli_smb_req_create(state, ev, cli, SMBreadX, 0, wct,
subreq = cli_smb_req_create(state, ev, cli, SMBreadX, 0, 0, wct,
state->vwv, 0, NULL);
if (subreq == NULL) {
TALLOC_FREE(req);
Expand Down Expand Up @@ -863,7 +863,7 @@ struct tevent_req *cli_write_andx_create(TALLOC_CTX *mem_ctx,
state->iov[1].iov_base = discard_const_p(void, buf);
state->iov[1].iov_len = state->size;

subreq = cli_smb_req_create(state, ev, cli, SMBwriteX, 0, wct, vwv,
subreq = cli_smb_req_create(state, ev, cli, SMBwriteX, 0, 0, wct, vwv,
2, state->iov);
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
Expand Down

0 comments on commit 79c8b75

Please sign in to comment.