]> 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)
committerRalph Boehme <slow@samba.org>
Thu, 31 Oct 2024 11:33:31 +0000 (11:33 +0000)
commita5635791cfdb10f64bf2bf7c72c58f7591249a0d
tree3593cd727c040803e64ea1a00def5bef32edc7c1
parent3890ac2fafc5e17919fa39542440a05ef72a3fa5
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>
selftest/knownfail
source3/smbd/smb2_server.c