svn commit: samba r3291 - in branches/SAMBA_4_0/source/utils: .
metze at samba.org
metze at samba.org
Wed Oct 27 15:40:20 GMT 2004
Author: metze
Date: 2004-10-27 15:40:19 +0000 (Wed, 27 Oct 2004)
New Revision: 3291
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/utils&rev=3291&nolog=1
Log:
fix the build, thx to pipitas for finding this
metze
Modified:
branches/SAMBA_4_0/source/utils/setntacl.c
branches/SAMBA_4_0/source/utils/setnttoken.c
Changeset:
Modified: branches/SAMBA_4_0/source/utils/setntacl.c
===================================================================
--- branches/SAMBA_4_0/source/utils/setntacl.c 2004-10-27 13:38:30 UTC (rev 3290)
+++ branches/SAMBA_4_0/source/utils/setntacl.c 2004-10-27 15:40:19 UTC (rev 3291)
@@ -91,9 +91,8 @@
return 1;
}
- acl->aces = talloc_realloc(
- acl->aces,
- (acl->num_aces + 1) * sizeof(struct security_ace));
+ acl->aces = talloc_realloc(mem_ctx, acl->aces,
+ (acl->num_aces + 1) * sizeof(struct security_ace));
acl->aces[acl->num_aces].type = ace_type;
acl->aces[acl->num_aces].flags = ace_flags;
Modified: branches/SAMBA_4_0/source/utils/setnttoken.c
===================================================================
--- branches/SAMBA_4_0/source/utils/setnttoken.c 2004-10-27 13:38:30 UTC (rev 3290)
+++ branches/SAMBA_4_0/source/utils/setnttoken.c 2004-10-27 15:40:19 UTC (rev 3291)
@@ -38,9 +38,12 @@
struct ndr_push *ndr;
struct lsa_SidArray sidarray;
NTSTATUS status;
+ TALLOC_CTX *mem_ctx;
setup_logging("setnttoken", DEBUG_STDOUT);
+ mem_ctx = talloc_init("setnttoken");
+
ndr = ndr_push_init();
sidarray.num_sids = 0;
@@ -54,9 +57,8 @@
continue;
}
- sidarray.sids = talloc_realloc(
- sidarray.sids,
- (sidarray.num_sids + 1) * sizeof(struct lsa_SidPtr));
+ sidarray.sids = talloc_realloc(mem_ctx, sidarray.sids,
+ (sidarray.num_sids + 1) * sizeof(struct lsa_SidPtr));
sidarray.sids[sidarray.num_sids].sid =
dom_sid_dup(ndr, sid);
More information about the samba-cvs
mailing list