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)
committerStefan Metzmacher <metze@samba.org>
Wed, 12 Oct 2011 23:59:05 +0000 (01:59 +0200)
metze

source3/smbd/smb2_write.c

index e95b9676087ea4bd46bd15235dce5c0f421cdb3a..edf61768212edb3324b4d88aef68c0bc385c9e16 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;