STEP12? Revert "HACK disconnect after 2 writes"
authorStefan Metzmacher <metze@samba.org>
Thu, 26 Jul 2012 06:23:33 +0000 (08:23 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 19 Sep 2016 20:20:49 +0000 (22:20 +0200)
This reverts commit eaa7023f865be73483a99ff203d1dbfb3e180ef9.

source3/smbd/smb2_write.c

index af4177a1093bfd350c9d2bc0a5279a4818f26ff4..da583c9de8e144fb823d41b3c72fbe8bcd8fc01e 100644 (file)
@@ -52,12 +52,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)) {