]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd: remove duplicate assignment of base_fsp in create_file_unixpath()
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Jan 2021 15:33:09 +0000 (16:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jan 2021 11:30:38 +0000 (11:30 +0000)
This has already been set a few lines above. The duplicate was the result of
restructuring create_file_unixpath() a few months ago, allocating fsp in
create_file_unixpath() instead of in the callees open_file_ntcreate() or
open_directory() respectively.

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

index 67b5925bd515b1ba8194c2669ea606cb0ddfc809..4f6140deccd45203e8b3cd40b0c7ec421c76b9b5 100644 (file)
@@ -5946,8 +5946,6 @@ static NTSTATUS create_file_unixpath(connection_struct *conn,
                goto fail;
        }
 
-       fsp->base_fsp = base_fsp;
-
        fsp->fsp_flags.is_fsa = true;
 
        if ((ea_list != NULL) &&