From: Stefan Metzmacher Date: Tue, 9 Jun 2009 17:31:15 +0000 (+0200) Subject: s3:smbd: only pass the chained file handle for related compounded SMB2 requests X-Git-Tag: tdb-1.1.5~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ae8bf09e66094f794cab9e04226d9b26575006b;p=thirdparty%2Fsamba.git s3:smbd: only pass the chained file handle for related compounded SMB2 requests metze --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 84a82ff2419..f14504249f1 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -406,6 +406,10 @@ static NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req) return smbd_smb2_request_error(req, req->next_status); } + if ((flags & SMB2_HDR_FLAG_CHAINED) == 0) { + req->compat_chain_fsp = NULL; + } + switch (opcode) { case SMB2_OP_NEGPROT: return smbd_smb2_request_process_negprot(req);