s3:smb2cli: allow 32bit dyn_len in smb2cli_req_create()/smb2cli_req_send()
authorStefan Metzmacher <metze@samba.org>
Fri, 12 Aug 2011 15:23:04 +0000 (17:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 12 Aug 2011 16:06:44 +0000 (18:06 +0200)
metze

source3/libsmb/smb2cli_base.c
source3/libsmb/smb2cli_base.h

index e7ba5175a3d06590066a4ed862826266fa6d485e..dd212730bc22ed61b25e71913202ef2d6e444e98 100644 (file)
@@ -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;
index 9c49a8c8d343ac6d3cbefbe031b5e0d4bd3bf469..85cf34715607e3c6b254a2ed3d0e9c923781fad3 100644 (file)
@@ -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);