summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2020-12-16 15:12:46 +0100
committerStefan Metzmacher <metze@samba.org>2021-01-14 11:30:38 +0000
commit30134630988ca76545a8aee8516d44a0dc64bc8d (patch)
tree528dd8c9c51925696c2928826dff7aef77126217 /source3
parentc2e7256b1e092acc20daf58059c0e749e3a756e4 (diff)
downloadsamba-30134630988ca76545a8aee8516d44a0dc64bc8d.tar.gz
s3:smbd: let open_pathref_base_fsp() make use of smb_fname_fsp_unlink()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/files.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c
index 84717d91767..122afa4f3d6 100644
--- a/source3/smbd/files.c
+++ b/source3/smbd/files.c
@@ -396,9 +396,7 @@ static NTSTATUS open_pathref_base_fsp(const struct files_struct *dirfsp,
}
fsp->base_fsp = smb_fname_base->fsp;
- smb_fname_base->fsp = NULL;
- talloc_set_destructor(smb_fname_base->fsp_link, NULL);
- talloc_set_destructor(smb_fname_base, NULL);
+ smb_fname_fsp_unlink(smb_fname_base);
TALLOC_FREE(smb_fname_base);
return NT_STATUS_OK;