]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: let call_trans2findfirst() use file_free() instead of fsp_free()
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Dec 2020 12:28:40 +0000 (13:28 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jan 2021 11:30:38 +0000 (11:30 +0000)
This makes sure we call vfs_remove_all_fsp_extensions() before
fsp_free() is called from within file_free(). And allows us to
make 'fsp_free()' static in the next commits.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/trans2.c

index db2103201274b65ed4746b0fd6139352325d6551..cdaf68c579aef4c7737f23767b98389cde1665cc 100644 (file)
@@ -2833,7 +2833,7 @@ close_if_end = %d requires_resume_key = %d backup_priv = %d level = 0x%x, max_da
         * correct path.
         */
        if (smb_dname->fsp != NULL) {
-               fsp_free(smb_dname->fsp);
+               file_free(req, smb_dname->fsp);
                smb_dname->fsp = NULL;
        }