s3:libsmb: let cli_read_andx_create() accept any length
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Mar 2013 08:33:00 +0000 (09:33 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 20 Mar 2013 16:32:25 +0000 (09:32 -0700)
It's up to the server to decide the allowed length.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clireadwrite.c

index 75c168342780227fc9ccf9eda38c098e3a6e4d9d..47e7f1bfd4c65880df772d3f68397fab80715733 100644 (file)
@@ -132,13 +132,6 @@ struct tevent_req *cli_read_andx_create(TALLOC_CTX *mem_ctx,
        struct cli_read_andx_state *state;
        uint8_t wct = 10;
 
-       if (size > cli_read_max_bufsize(cli)) {
-               DEBUG(0, ("cli_read_andx_send got size=%d, can only handle "
-                         "size=%d\n", (int)size,
-                         (int)cli_read_max_bufsize(cli)));
-               return NULL;
-       }
-
        req = tevent_req_create(mem_ctx, &state, struct cli_read_andx_state);
        if (req == NULL) {
                return NULL;