summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-05-05 09:42:45 -0700
committerJeremy Allison <jra@samba.org>2010-05-05 09:42:45 -0700
commit4a97912baffd4c224677dd15da11c85c92901e4a (patch)
treeb1ece97ca6fa278e72894c1bddd4ab289f163038
parent44e9a90b512cd9eeaaa59fa1756a235621819f88 (diff)
downloadsamba-4a97912baffd4c224677dd15da11c85c92901e4a.tar.gz
samba-4a97912baffd4c224677dd15da11c85c92901e4a.tar.bz2
samba-4a97912baffd4c224677dd15da11c85c92901e4a.zip
Client ignoring max write is a warning, not an error.
Jeremy.
-rw-r--r--source3/smbd/smb2_write.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c
index 608cf09e45..b8e7a9c816 100644
--- a/source3/smbd/smb2_write.c
+++ b/source3/smbd/smb2_write.c
@@ -82,9 +82,13 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req)
/* check the max write size */
if (in_data_length > lp_smb2_max_write()) {
- DEBUG(0,("here:%s: 0x%08X: 0x%08X\n",
+ /* This is a warning. */
+ DEBUG(2,("smbd_smb2_request_process_write : "
+ "client ignored max write :%s: 0x%08X: 0x%08X\n",
__location__, in_data_length, lp_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;