]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove a NULL check that became obsolete
authorVolker Lendecke <vl@samba.org>
Thu, 9 Nov 2023 11:25:32 +0000 (12:25 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 15 Nov 2023 05:10:35 +0000 (05:10 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dosmode.c

index 229a85a91711caf889a267fb0ed1e9ce40c53f73..41241fd2bfc468d33269605d2b33d9cb33a44943 100644 (file)
@@ -686,16 +686,6 @@ uint32_t fdos_mode(struct files_struct *fsp)
        uint32_t result = 0;
        NTSTATUS status = NT_STATUS_OK;
 
-       if (fsp == NULL) {
-               /*
-                * The pathological case where a caller does
-                * fdos_mode(smb_fname->fsp) passing a pathref fsp. But as
-                * smb_fname points at a symlink in POSIX context smb_fname->fsp
-                * is NULL.
-                */
-               return FILE_ATTRIBUTE_NORMAL;
-       }
-
        DBG_DEBUG("%s\n", fsp_str_dbg(fsp));
 
        if (fsp->fake_file_handle != NULL) {