]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use common exit in filename_convert_internal()
authorRalph Boehme <slow@samba.org>
Mon, 23 Nov 2020 05:40:16 +0000 (06:40 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/filename.c

index 20e44a76204cc06cef1ca5f704a85969b716f214..a89f3047bac88b67db947f1db07ac272ea3d55a2 100644 (file)
@@ -1970,11 +1970,7 @@ static NTSTATUS filename_convert_internal(TALLOC_CTX *ctx,
                        TALLOC_FREE(smb_fname);
                        return status;
                }
-               *_smb_fname = smb_fname;
-               return NT_STATUS_OK;
-       }
-
-       if (!smbreq) {
+       } else if (!smbreq) {
                status = check_name(conn, smb_fname);
        } else {
                status = check_name_with_privilege(conn, smbreq,