From: Volker Lendecke Date: Sun, 6 Feb 2022 10:59:52 +0000 (+0100) Subject: smbd: Fix CID 1497981: Null pointer dereferences (REVERSE_INULL) X-Git-Tag: tevent-0.12.0~772 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ede2328c965644010ae305ce15adcd231e3e7bd5;p=thirdparty%2Fsamba.git smbd: Fix CID 1497981: Null pointer dereferences (REVERSE_INULL) brown paper bag quality, sorry... Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index ba9a61f2db6..245d904f380 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -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; }