From f11a5d196d6beaeb8445d759559ff684045776f5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 27 Apr 2010 16:07:12 -0700 Subject: Don't return an intermediate reply on async on a pipe call (Windows doesn't). Jeremy. --- source3/smbd/smb2_server.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3') diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 894042702b..67d20b13e4 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -712,6 +712,11 @@ NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req, } } + /* Don't return an intermediate packet on a pipe read/write. */ + if (req->tcon && req->tcon->compat_conn && IS_IPC(req->tcon->compat_conn)) { + return NT_STATUS_OK; + } + reqhdr = (uint8_t *)req->out.vector[i].iov_base; flags = (IVAL(reqhdr, SMB2_HDR_FLAGS) & ~SMB2_HDR_FLAG_CHAINED); message_id = BVAL(reqhdr, SMB2_HDR_MESSAGE_ID); -- cgit