]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: return correct error for compound related requests that went async
authorRalph Boehme <slow@samba.org>
Mon, 26 Aug 2024 08:48:34 +0000 (10:48 +0200)
committerJule Anger <janger@samba.org>
Mon, 9 Dec 2024 08:36:19 +0000 (08:36 +0000)
commit9cdfb755b7a0111e5853ec6fd940c82163fa8bf5
tree080c03c3bcabc437ff3623022148b1d0b9babc40
parent00fb1d0fe222fec3e68c3d7c25d6723efa862c51
smbd: return correct error for compound related requests that went async

For a compound related request chain of eg CREATE+NOTIFY+GETINFO, the NOTIFY
will typically go async. When this is noted in smbd_smb2_request_pending_queue()
the pending async tevent_req is cancelled which means we return
NT_STATUS_CANCELLED to the client while Windows returns
NT_STATUS_INTERNAL_ERROR.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15697

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit a5635791cfdb10f64bf2bf7c72c58f7591249a0d)
selftest/knownfail
source3/smbd/smb2_server.c