]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: Fix an error resource leak in OpenDir_from_pathref()
authorVolker Lendecke <vl@samba.org>
Thu, 10 Oct 2024 15:14:10 +0000 (17:14 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 12 Nov 2024 13:26:10 +0000 (13:26 +0000)
commitf8994bc2890fa83ffffb4bbd89214d78968e7e04
treec132b17ff8d28b5c8462d75a3bbc4b615858a0dc
parent01f15d0e5e6701cb6ede3fe85ab7311bd0aa6534
smbd: Fix an error resource leak in OpenDir_from_pathref()

We have to undo the fsp allocation and open we've done. Not noticed,
it's probably highly unlikely OpenDir_fsp() fails.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Nov 12 13:26:10 UTC 2024 on atb-devel-224
source3/smbd/dir.c