smbd: Pass error_context_count through smbd_smb2_request_error_ex()
authorVolker Lendecke <vl@samba.org>
Fri, 14 Oct 2022 14:23:30 +0000 (16:23 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 22 Nov 2022 18:27:33 +0000 (18:27 +0000)
commit9e07a8181247385a169e02adc184a03590d35573
tree199473556e1625bc0cb163fda9fce81299f0d06a
parentc14b8dc0aaf2d095498072367d2ddfc247a283fe
smbd: Pass error_context_count through smbd_smb2_request_error_ex()

See [MS-SMB2] 2.2.2: This field MUST be set to 0 for SMB dialects
other than 3.1.1. For the SMB dialect 3.1.1, if this field is nonzero,
the ErrorData field MUST be formatted as a variable-length array of
SMB2 ERROR Context structures containing ErrorContextCount entries.

Not used right now yet, but once we start to return STOPPED_ON_SYMLINK properly
this is required.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/globals.h
source3/smbd/smb2_getinfo.c
source3/smbd/smb2_server.c