diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-09-19 22:47:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:00:48 -0500 |
commit | 7cf3a10756a0b462d49235c91099312416319ae6 (patch) | |
tree | b9dc16191e72929cd63e5883ef09eda82d9145a2 /source3/librpc/gen_ndr/srv_unixinfo.c | |
parent | 7238a71961ebd7e726a0f227b7a47916c196c67d (diff) | |
download | samba-7cf3a10756a0b462d49235c91099312416319ae6.tar.gz samba-7cf3a10756a0b462d49235c91099312416319ae6.tar.bz2 samba-7cf3a10756a0b462d49235c91099312416319ae6.zip |
r18695: Zero initialize ref ptrs as well.
(This used to be commit 3295122173b0794880e68ea60f51d41b9b170ff4)
Diffstat (limited to 'source3/librpc/gen_ndr/srv_unixinfo.c')
-rw-r--r-- | source3/librpc/gen_ndr/srv_unixinfo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/librpc/gen_ndr/srv_unixinfo.c b/source3/librpc/gen_ndr/srv_unixinfo.c index 2195e7964f..d3d5b5609f 100644 --- a/source3/librpc/gen_ndr/srv_unixinfo.c +++ b/source3/librpc/gen_ndr/srv_unixinfo.c @@ -35,7 +35,7 @@ static BOOL api_unixinfo_SidToUid(pipes_struct *p) NDR_PRINT_IN_DEBUG(unixinfo_SidToUid, &r); ZERO_STRUCT(r.out); - r.out.uid = talloc_size(mem_ctx, sizeof(*r.out.uid)); + r.out.uid = talloc_zero_size(mem_ctx, sizeof(*r.out.uid)); if (r.out.uid == NULL) { talloc_free(mem_ctx); return False; @@ -98,7 +98,7 @@ static BOOL api_unixinfo_UidToSid(pipes_struct *p) NDR_PRINT_IN_DEBUG(unixinfo_UidToSid, &r); ZERO_STRUCT(r.out); - r.out.sid = talloc_size(mem_ctx, sizeof(*r.out.sid)); + r.out.sid = talloc_zero_size(mem_ctx, sizeof(*r.out.sid)); if (r.out.sid == NULL) { talloc_free(mem_ctx); return False; @@ -161,7 +161,7 @@ static BOOL api_unixinfo_SidToGid(pipes_struct *p) NDR_PRINT_IN_DEBUG(unixinfo_SidToGid, &r); ZERO_STRUCT(r.out); - r.out.gid = talloc_size(mem_ctx, sizeof(*r.out.gid)); + r.out.gid = talloc_zero_size(mem_ctx, sizeof(*r.out.gid)); if (r.out.gid == NULL) { talloc_free(mem_ctx); return False; @@ -224,7 +224,7 @@ static BOOL api_unixinfo_GidToSid(pipes_struct *p) NDR_PRINT_IN_DEBUG(unixinfo_GidToSid, &r); ZERO_STRUCT(r.out); - r.out.sid = talloc_size(mem_ctx, sizeof(*r.out.sid)); + r.out.sid = talloc_zero_size(mem_ctx, sizeof(*r.out.sid)); if (r.out.sid == NULL) { talloc_free(mem_ctx); return False; @@ -288,7 +288,7 @@ static BOOL api_unixinfo_GetPWUid(pipes_struct *p) ZERO_STRUCT(r.out); r.out.count = r.in.count; - r.out.infos = talloc_array_size(mem_ctx, sizeof(*r.out.infos), *r.in.count); + r.out.infos = talloc_zero_size(mem_ctx, sizeof(*r.out.infos) * *r.in.count); if (r.out.infos == NULL) { talloc_free(mem_ctx); return False; |