]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Fix CID 1497981: Null pointer dereferences (REVERSE_INULL)
authorVolker Lendecke <vl@samba.org>
Sun, 6 Feb 2022 10:59:52 +0000 (11:59 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 7 Feb 2022 19:00:34 +0000 (19:00 +0000)
brown paper bag quality, sorry...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/posix_acls.c

index ba9a61f2db6349cde493bad88e0265e87d400cbb..245d904f3802e323e510ff0b478281c4d346f4ce 100644 (file)
@@ -3962,7 +3962,7 @@ static int copy_access_posix_acl(struct files_struct *from,
 
        posix_acl = SMB_VFS_SYS_ACL_GET_FD(
                from, SMB_ACL_TYPE_ACCESS, talloc_tos());
-       if (from == NULL) {
+       if (posix_acl == NULL) {
                return -1;
        }