1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-15 13:49:28 +03:00

s3:smbd: only allow cancel with the same session

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Stefan Metzmacher
2021-07-13 21:50:27 +02:00
parent 6447ae60b0
commit f435de5917

View File

@ -2408,6 +2408,10 @@ static NTSTATUS smbd_smb2_request_process_cancel(struct smbd_smb2_request *req)
uint64_t message_id;
uint64_t async_id;
if (cur->session != req->session) {
continue;
}
if (cur->compound_related) {
/*
* Never cancel anything in a compound request.