smbd: fix close order of base_fsp and stream_fsp in smb_fname_fsp_destructor()
authorRalph Boehme <slow@samba.org>
Thu, 16 Nov 2023 09:50:32 +0000 (10:50 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 16 Nov 2023 18:31:17 +0000 (18:31 +0000)
commit4481a67c1b20549a71d6c5132b637798a09f966d
tree3addb7771fba3eb70cea7c439e1b812273715ce3
parentfe1d45cf1e90e9d75f3a47d65b920e2a7e472c97
smbd: fix close order of base_fsp and stream_fsp in smb_fname_fsp_destructor()

VFS modules like streams_xattr use the function fsp_is_alternate_stream() on the
fsp to determine in an fsp is a stream, eg in streams_xattr_close(). If
fspo->base_fsp is arlready set to NULL, this won't work anymore.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Nov 16 18:31:17 UTC 2023 on atb-devel-224
source3/smbd/files.c