1
0
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:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent c43593ad06
commit 5934137741

View File

@ -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;