smbd: Remove an assert that never triggers
authorVolker Lendecke <vl@samba.org>
Tue, 31 Oct 2023 14:35:59 +0000 (15:35 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 7 Nov 2023 12:46:37 +0000 (12:46 +0000)
We've checked that right above.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_trans2.c

index 788045584d00486a61116eb102c06736bbd9e99b..604d78905871109424c0adbe7e3819aeefe217a3 100644 (file)
@@ -221,9 +221,6 @@ NTSTATUS get_ea_names_from_fsp(TALLOC_CTX *mem_ctx,
                return NT_STATUS_OK;
        }
 
-       /* should be the case that fsp != NULL */
-       SMB_ASSERT(fsp != NULL);
-
        sizeret = SMB_VFS_FLISTXATTR(fsp, ea_namelist,
                                     ea_namelist_size);