smbd: Revert a93f9c3
authorVolker Lendecke <vl@samba.org>
Tue, 27 Aug 2013 09:38:29 +0000 (09:38 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 28 Aug 2013 21:37:08 +0000 (23:37 +0200)
This was too broad and has been replaced by finer-grained error checks

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10106
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_getinfo.c

index 4111aa1dc06006a2e1471f2366cb15a60cb4c31d..449aeb3f5f4864c5acd02fb2306bc81864c7f01e 100644 (file)
@@ -530,11 +530,6 @@ static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
                return tevent_req_post(req, ev);
        }
 
-       if (state->out_output_buffer.length > in_output_buffer_length) {
-               tevent_req_nterror(req, NT_STATUS_INFO_LENGTH_MISMATCH);
-               return tevent_req_post(req, ev);
-       }
-
        state->status = status;
        tevent_req_done(req);
        return tevent_req_post(req, ev);