Revert "HACK disconnect after 2 writes"
authorStefan Metzmacher <metze@samba.org>
Thu, 26 Jul 2012 06:23:33 +0000 (08:23 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 15 Oct 2019 07:36:22 +0000 (09:36 +0200)
This reverts commit eaa7023f865be73483a99ff203d1dbfb3e180ef9.

source3/smbd/smb2_write.c

index 4c532d7a32955f96a1f0a0dcfcf34f91340970ce..e49e623d79686a5efe2c6f265b0fd5c8e81963a9 100644 (file)
@@ -55,12 +55,6 @@ 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)) {