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_wkssvc.c | |
parent | 7238a71961ebd7e726a0f227b7a47916c196c67d (diff) | |
download | samba-7cf3a10756a0b462d49235c91099312416319ae6.tar.gz samba-7cf3a10756a0b462d49235c91099312416319ae6.tar.xz samba-7cf3a10756a0b462d49235c91099312416319ae6.zip |
r18695: Zero initialize ref ptrs as well.
(This used to be commit 3295122173b0794880e68ea60f51d41b9b170ff4)
Diffstat (limited to 'source3/librpc/gen_ndr/srv_wkssvc.c')
-rw-r--r-- | source3/librpc/gen_ndr/srv_wkssvc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/librpc/gen_ndr/srv_wkssvc.c b/source3/librpc/gen_ndr/srv_wkssvc.c index 330bfc457bb..3392a42fc6f 100644 --- a/source3/librpc/gen_ndr/srv_wkssvc.c +++ b/source3/librpc/gen_ndr/srv_wkssvc.c @@ -35,7 +35,7 @@ static BOOL api_wkssvc_NetWkstaGetInfo(pipes_struct *p) NDR_PRINT_IN_DEBUG(wkssvc_NetWkstaGetInfo, &r); ZERO_STRUCT(r.out); - r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info)); + r.out.info = talloc_zero_size(mem_ctx, sizeof(*r.out.info)); if (r.out.info == NULL) { talloc_free(mem_ctx); return False; @@ -157,13 +157,13 @@ static BOOL api_wkssvc_NetWkstaEnumUsers(pipes_struct *p) ZERO_STRUCT(r.out); r.out.users = r.in.users; - r.out.entriesread = talloc_size(mem_ctx, sizeof(*r.out.entriesread)); + r.out.entriesread = talloc_zero_size(mem_ctx, sizeof(*r.out.entriesread)); if (r.out.entriesread == NULL) { talloc_free(mem_ctx); return False; } - r.out.totalentries = talloc_size(mem_ctx, sizeof(*r.out.totalentries)); + r.out.totalentries = talloc_zero_size(mem_ctx, sizeof(*r.out.totalentries)); if (r.out.totalentries == NULL) { talloc_free(mem_ctx); return False; @@ -341,7 +341,7 @@ static BOOL api_wkssvc_NetWkstaTransportEnum(pipes_struct *p) ZERO_STRUCT(r.out); r.out.level = r.in.level; r.out.ctr = r.in.ctr; - r.out.totalentries = talloc_size(mem_ctx, sizeof(*r.out.totalentries)); + r.out.totalentries = talloc_zero_size(mem_ctx, sizeof(*r.out.totalentries)); if (r.out.totalentries == NULL) { talloc_free(mem_ctx); return False; |