s3:smb2_server: reject writes larger then the negotiated max_write size (bug #8473)
authorStefan Metzmacher <metze@samba.org>
Wed, 12 Oct 2011 14:58:46 +0000 (16:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Oct 2011 18:09:51 +0000 (20:09 +0200)
metze
(cherry picked from commit 6981f1114792cc251bf1e05183dd88f5d351ab09)

source3/smbd/smb2_write.c

index 3a6ea9bfdbfa39c71372aeb639ae64dfdd61651e..b2360caacec8dd63fd3c679b14c0174fe0d01a05 100644 (file)
@@ -82,9 +82,7 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req)
                DEBUG(2,("smbd_smb2_request_process_write : "
                        "client ignored max write :%s: 0x%08X: 0x%08X\n",
                        __location__, in_data_length, req->sconn->smb2.max_write));
-#if 0
                return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER);
-#endif
        }
 
        in_data_buffer.data = (uint8_t *)req->in.vector[i+2].iov_base;