From 5185365c6b215905663aca5161924a357268f64d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 8 May 2013 11:51:38 -0700 Subject: [PATCH] Ensure we don't try and cancel anything that is in a compound-related request. Too hard to deal with splitting off the replies. Signed-off-by: Jeremy Allison --- source3/smbd/smb2_server.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index cc884c383eb..396d476f41d 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -1178,6 +1178,14 @@ static NTSTATUS smbd_smb2_request_process_cancel(struct smbd_smb2_request *req) uint64_t message_id; uint64_t async_id; + if (cur->compound_related) { + /* + * Never cancel anything in a compound request. + * Way too hard to deal with the result. + */ + continue; + } + i = cur->current_idx; outhdr = (const uint8_t *)cur->out.vector[i].iov_base; -- 2.11.4.GIT