mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r23877: Fix two segfaults in (very unlikely) error paths, found by the IBM
checker.
This commit is contained in:
parent
cc41b3b60f
commit
33068885e6
@ -2998,6 +2998,7 @@ static BOOL marshall_posix_acl(connection_struct *conn, char *pdata, SMB_STRUCT_
|
||||
uid_t *puid = (uid_t *)SMB_VFS_SYS_ACL_GET_QUALIFIER(conn, entry);
|
||||
if (!puid) {
|
||||
DEBUG(0,("marshall_posix_acl: SMB_VFS_SYS_ACL_GET_QUALIFIER failed.\n"));
|
||||
return False;
|
||||
}
|
||||
own_grp = (unsigned int)*puid;
|
||||
SMB_VFS_SYS_ACL_FREE_QUALIFIER(conn, (void *)puid,tagtype);
|
||||
@ -3017,6 +3018,7 @@ static BOOL marshall_posix_acl(connection_struct *conn, char *pdata, SMB_STRUCT_
|
||||
gid_t *pgid= (gid_t *)SMB_VFS_SYS_ACL_GET_QUALIFIER(conn, entry);
|
||||
if (!pgid) {
|
||||
DEBUG(0,("marshall_posix_acl: SMB_VFS_SYS_ACL_GET_QUALIFIER failed.\n"));
|
||||
return False;
|
||||
}
|
||||
own_grp = (unsigned int)*pgid;
|
||||
SMB_VFS_SYS_ACL_FREE_QUALIFIER(conn, (void *)pgid,tagtype);
|
||||
|
Loading…
Reference in New Issue
Block a user