summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_dfs.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
commit7cf3a10756a0b462d49235c91099312416319ae6 (patch)
treeb9dc16191e72929cd63e5883ef09eda82d9145a2 /source3/librpc/gen_ndr/srv_dfs.c
parent7238a71961ebd7e726a0f227b7a47916c196c67d (diff)
downloadsamba-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_dfs.c')
-rw-r--r--source3/librpc/gen_ndr/srv_dfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/librpc/gen_ndr/srv_dfs.c b/source3/librpc/gen_ndr/srv_dfs.c
index a4da9fbe06..4c16201e9f 100644
--- a/source3/librpc/gen_ndr/srv_dfs.c
+++ b/source3/librpc/gen_ndr/srv_dfs.c
@@ -35,7 +35,7 @@ static BOOL api_dfs_GetManagerVersion(pipes_struct *p)
NDR_PRINT_IN_DEBUG(dfs_GetManagerVersion, &r);
ZERO_STRUCT(r.out);
- r.out.exist_flag = talloc_size(mem_ctx, sizeof(*r.out.exist_flag));
+ r.out.exist_flag = talloc_zero_size(mem_ctx, sizeof(*r.out.exist_flag));
if (r.out.exist_flag == NULL) {
talloc_free(mem_ctx);
return False;
@@ -266,7 +266,7 @@ static BOOL api_dfs_GetInfo(pipes_struct *p)
NDR_PRINT_IN_DEBUG(dfs_GetInfo, &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;