mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
don't crash on null acl sort
This commit is contained in:
parent
c43593ad06
commit
5934137741
@ -544,6 +544,8 @@ static void sort_acl(SEC_ACL *the_acl)
|
||||
int i, ace_ndx = 0;
|
||||
BOOL do_denied = True;
|
||||
|
||||
if (!the_acl) return;
|
||||
|
||||
tmp_ace = (SEC_ACE *)malloc(sizeof(SEC_ACE) * the_acl->num_aces);
|
||||
|
||||
if (!tmp_ace) return;
|
||||
|
Loading…
Reference in New Issue
Block a user