From: Stefan Metzmacher Date: Thu, 26 Jul 2012 06:23:10 +0000 (+0200) Subject: HACK disconnect after 2 writes X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=ec347e7295cd4c69e50a367e4c7ebe1ee81e2943 HACK disconnect after 2 writes --- diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c index e49e623d7968..4c532d7a3295 100644 --- a/source3/smbd/smb2_write.c +++ b/source3/smbd/smb2_write.c @@ -55,6 +55,12 @@ NTSTATUS smbd_smb2_request_process_write(struct smbd_smb2_request *req) size_t in_dyn_len = 0; uint8_t *in_dyn_ptr = NULL; struct tevent_req *subreq; + static int count = 0; + + count++; + if (count > 2) { + return NT_STATUS_FILE_FORCED_CLOSED; + } status = smbd_smb2_request_verify_sizes(req, 0x31); if (!NT_STATUS_IS_OK(status)) {