summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-06-08 07:55:24 +0000
committerLuke Leighton <lkcl@samba.org>2000-06-08 07:55:24 +0000
commit6ac53832337549c58b45b84b9a2be502561423d1 (patch)
treee4f4f2a1b785d6c1291e75365d1ecfe0ab3b464b /source3/printing
parentbda48b382477f2a6478ebd86b67cb63ac391854e (diff)
downloadsamba-6ac53832337549c58b45b84b9a2be502561423d1.tar.gz
samba-6ac53832337549c58b45b84b9a2be502561423d1.tar.bz2
samba-6ac53832337549c58b45b84b9a2be502561423d1.zip
make_sec_acl was passed pointer to static array ace[2], oops.
(This used to be commit f3502d846c99c77b13ce75977f5dc79cc1a3506d)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index f9365b481d..0a6d37a7f0 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -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);