Fix bug #8473 - smb2_find uses a hard coded max reply size of 0x10000 instead of...
authorJeremy Allison <jra@samba.org>
Wed, 21 Sep 2011 18:30:06 +0000 (11:30 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 21 Sep 2011 18:30:06 +0000 (11:30 -0700)
Use lp_smb2_max_trans() instead of 0x10000.

source3/smbd/smb2_find.c

index 6c68810853e5eef543fa4ae1037f1d8bb283ea8f..509b9d6ecd9089b8b0f3e556ee0680a115017518 100644 (file)
@@ -281,7 +281,7 @@ static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
                return tevent_req_post(req, ev);
        }
 
-       if (in_output_buffer_length > 0x10000) {
+       if (in_output_buffer_length > lp_smb2_max_trans()) {
                tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER);
                return tevent_req_post(req, ev);
        }