summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-12 16:58:46 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-13 01:59:05 +0200
commit6981f1114792cc251bf1e05183dd88f5d351ab09 (patch)
treeb18256914e1316e3c860df9729456964057912eb /source3/smbd
parent40ea66c5dda91ba3f74bed7db1ce02f6c8b4ffeb (diff)
downloadsamba-6981f1114792cc251bf1e05183dd88f5d351ab09.tar.gz
samba-6981f1114792cc251bf1e05183dd88f5d351ab09.tar.bz2
samba-6981f1114792cc251bf1e05183dd88f5d351ab09.zip
s3:smb2_server: reject writes larger then the negotiated max_write size (bug #8473)
metze
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_write.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c
index e95b967608..edf6176821 100644
--- a/source3/smbd/smb2_write.c
+++ b/source3/smbd/smb2_write.c
@@ -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;