From: Ralph Boehme Date: Mon, 16 Nov 2020 17:37:11 +0000 (+0100) Subject: smbd: check for valid FSA fsp in smb_query_posix_acl() X-Git-Tag: samba-4.14.0rc1~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bc943ddf34f59af23ab43890e3672cb944491ad;p=thirdparty%2Fsamba.git smbd: check for valid FSA fsp in smb_query_posix_acl() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 55eb015b5ce..f11b86eda06 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -4969,7 +4969,7 @@ static NTSTATUS smb_query_posix_acl(connection_struct *conn, * Ensure we always operate on a file descriptor, not just * the filename. */ - if (fsp == NULL) { + if (fsp == NULL || !fsp->fsp_flags.is_fsa) { uint32_t access_mask = SEC_STD_READ_CONTROL| FILE_READ_ATTRIBUTES| FILE_WRITE_ATTRIBUTES;