mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
make_sec_acl was passed pointer to static array ace[2], oops.
(This used to be commit f3502d846c99c77b13ce75977f5dc79cc1a3506d)
This commit is contained in:
parent
bda48b3824
commit
6ac5383233
@ -1506,7 +1506,7 @@ static SEC_DESC_BUF *construct_default_printer_sdb(void)
|
||||
init_sec_ace(&ace[1], &global_sid_World, SEC_ACE_TYPE_ACCESS_ALLOWED,
|
||||
sa, SEC_ACE_FLAG_CONTAINER_INHERIT);
|
||||
|
||||
if ((psa = make_sec_acl( ACL_REVISION, 2, &ace)) != NULL) {
|
||||
if ((psa = make_sec_acl( ACL_REVISION, 2, ace)) != NULL) {
|
||||
psd = make_sec_desc(SEC_DESC_REVISION, SEC_DESC_SELF_RELATIVE|SEC_DESC_DACL_PRESENT,
|
||||
&global_sid_World, &global_sid_World, NULL, psa, &sd_size);
|
||||
free_sec_acl(&psa);
|
||||
|
Loading…
x
Reference in New Issue
Block a user