]> git.ipfire.org Git - thirdparty/samba.git/commit
net: Fix a panic in "net vfs getntacl"
authorVolker Lendecke <vl@samba.org>
Thu, 20 Mar 2025 16:57:11 +0000 (17:57 +0100)
committerMartin Schwenke <martins@samba.org>
Sat, 14 Jun 2025 08:46:34 +0000 (08:46 +0000)
commit3c76c3989c9628a5e4c4e704185f4257620deccd
tree18c762adac1cf0dbc4eab5ade9f33507707bd572
parent9ac5f58a264cb889898cc7bfc844192d6fad8139
net: Fix a panic in "net vfs getntacl"

We have to explicitly free smb_fname, because after openat_pathref_fsp
we have a file descriptor around. If we then later talloc_free() the
connection_struct, fd_handle_destructor() panics because talloc_free()
does not free smb_fname before the connection_struct.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/utils/net_vfs.c