diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-05 18:22:57 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-07 08:32:45 +0200 |
commit | 42609036be8068a143169cbf18f42b0ac7f6575f (patch) | |
tree | fb178c9d90700db543c139db212b2bfc6e5f3c25 /source3/libsmb | |
parent | fbcba9fa8ff3d8b091016ed4e7d60a30703af50c (diff) | |
download | samba-42609036be8068a143169cbf18f42b0ac7f6575f.tar.gz samba-42609036be8068a143169cbf18f42b0ac7f6575f.tar.bz2 samba-42609036be8068a143169cbf18f42b0ac7f6575f.zip |
s3:smb2cli: SMB2_READ needs one dyn byte to that the structure size check works.
Windows generates NT_STATUS_INVALID_PARAMETER otherwise.
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/smb2cli_read.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/smb2cli_read.c b/source3/libsmb/smb2cli_read.c index bcdbd87e6a..e45a75f6ca 100644 --- a/source3/libsmb/smb2cli_read.c +++ b/source3/libsmb/smb2cli_read.c @@ -27,6 +27,7 @@ struct smb2cli_read_state { uint8_t fixed[48]; + uint8_t dyn_pad[1]; struct iovec *recv_iov; uint8_t *data; uint32_t data_length; @@ -70,7 +71,7 @@ struct tevent_req *smb2cli_read_send(TALLOC_CTX *mem_ctx, cli->smb2.tid, cli->smb2.uid, state->fixed, sizeof(state->fixed), - NULL, 0); + state->dyn_pad, sizeof(state->dyn_pad)); if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); } |