1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

don't crash on null acl sort

(This used to be commit 5934137741)
This commit is contained in:
Andrew Tridgell 2001-02-22 06:35:54 +00:00
parent 6022747b5b
commit b4096748dd

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;