summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-12 17:23:04 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-12 18:06:44 +0200
commit28c4d2d0f318d017e356cf8e80ff0da516346fee (patch)
tree32ed313cbbdbed2c88999da81d437a0015c0cc60
parentb41d44eda3ae7d72b3ddcfbd749b19f900bcd958 (diff)
downloadsamba-28c4d2d0f318d017e356cf8e80ff0da516346fee.tar.gz
samba-28c4d2d0f318d017e356cf8e80ff0da516346fee.tar.bz2
samba-28c4d2d0f318d017e356cf8e80ff0da516346fee.zip
s3:smb2cli: allow 32bit dyn_len in smb2cli_req_create()/smb2cli_req_send()
metze
-rw-r--r--source3/libsmb/smb2cli_base.c6
-rw-r--r--source3/libsmb/smb2cli_base.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c
index e7ba5175a3..dd212730bc 100644
--- a/source3/libsmb/smb2cli_base.c
+++ b/source3/libsmb/smb2cli_base.c
@@ -32,7 +32,7 @@ struct smb2cli_req_state {
const uint8_t *fixed;
uint16_t fixed_len;
const uint8_t *dyn;
- uint16_t dyn_len;
+ uint32_t dyn_len;
uint8_t nbt[4];
uint8_t hdr[64];
@@ -179,7 +179,7 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
const uint8_t *fixed,
uint16_t fixed_len,
const uint8_t *dyn,
- uint16_t dyn_len)
+ uint32_t dyn_len)
{
struct tevent_req *req;
struct smb2cli_req_state *state;
@@ -310,7 +310,7 @@ struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx,
const uint8_t *fixed,
uint16_t fixed_len,
const uint8_t *dyn,
- uint16_t dyn_len)
+ uint32_t dyn_len)
{
struct tevent_req *req;
NTSTATUS status;
diff --git a/source3/libsmb/smb2cli_base.h b/source3/libsmb/smb2cli_base.h
index 9c49a8c8d3..85cf347156 100644
--- a/source3/libsmb/smb2cli_base.h
+++ b/source3/libsmb/smb2cli_base.h
@@ -28,7 +28,7 @@ struct tevent_req *smb2cli_req_create(TALLOC_CTX *mem_ctx,
const uint8_t *fixed,
uint16_t fixed_len,
const uint8_t *dyn,
- uint16_t dyn_len);
+ uint32_t dyn_len);
NTSTATUS smb2cli_req_compound_submit(struct tevent_req **reqs,
int num_reqs);
struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx,
@@ -39,7 +39,7 @@ struct tevent_req *smb2cli_req_send(TALLOC_CTX *mem_ctx,
const uint8_t *fixed,
uint16_t fixed_len,
const uint8_t *dyn,
- uint16_t dyn_len);
+ uint32_t dyn_len);
NTSTATUS smb2cli_req_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
struct iovec **piov, int body_size);