]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: ignore non FSA fsps in file_find_dif()
authorRalph Boehme <slow@samba.org>
Thu, 19 Nov 2020 10:21:42 +0000 (11:21 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:30 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/files.c

index 49538c01cf3024d098f3dccce12de0864e6859cf..4d16e7e89c2d52dd35f9ea73e5c8176f64205cdc 100644 (file)
@@ -749,6 +749,9 @@ files_struct *file_find_dif(struct smbd_server_connection *sconn,
                if (!file_id_equal(&fsp->file_id, &id)) {
                        continue;
                }
+               if (!fsp->fsp_flags.is_fsa) {
+                       continue;
+               }
                if (fh_get_gen_id(fsp->fh) != gen_id) {
                        continue;
                }