summaryrefslogtreecommitdiffstats
path: root/source/librpc/gen_ndr/srv_wkssvc.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-09-19 22:47:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:48 -0500
commit3295122173b0794880e68ea60f51d41b9b170ff4 (patch)
tree5f3ff9a7c755fbb8617559aa6a2061b26acf6752 /source/librpc/gen_ndr/srv_wkssvc.c
parent5af1d3a425e99a49d7ff6bee4dad024e0f82509b (diff)
downloadsamba-3295122173b0794880e68ea60f51d41b9b170ff4.tar.gz
samba-3295122173b0794880e68ea60f51d41b9b170ff4.tar.xz
samba-3295122173b0794880e68ea60f51d41b9b170ff4.zip
r18695: Zero initialize ref ptrs as well.
Diffstat (limited to 'source/librpc/gen_ndr/srv_wkssvc.c')
-rw-r--r--source/librpc/gen_ndr/srv_wkssvc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/librpc/gen_ndr/srv_wkssvc.c b/source/librpc/gen_ndr/srv_wkssvc.c
index 330bfc457bb..3392a42fc6f 100644
--- a/source/librpc/gen_ndr/srv_wkssvc.c
+++ b/source/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;