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:
parent
d717a581ab
commit
ede2328c96
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user