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)
committerJule Anger <janger@samba.org>
Tue, 21 Nov 2023 10:19:16 +0000 (10:19 +0000)
commit95af9424ccca96054a4350d0fa2f5d9200c93c27
tree05cf06cc31c7fb35df9e75a5932e025fd75e9ada
parenta5b61b469a2303c31ca681a10bc70fb7cb86668e
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

(cherry picked from commit 4481a67c1b20549a71d6c5132b637798a09f966d)
source3/smbd/files.c