1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-24 10:50:22 +03:00

smbd: Fix CID 1497981: Null pointer dereferences (REVERSE_INULL)

brown paper bag quality, sorry...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-02-06 11:59:52 +01:00 committed by Jeremy Allison
parent d717a581ab
commit ede2328c96

View 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;
}