summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_eventlog.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_eventlog.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_eventlog.c')
-rw-r--r--source3/librpc/gen_ndr/srv_eventlog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/librpc/gen_ndr/srv_eventlog.c b/source3/librpc/gen_ndr/srv_eventlog.c
index ac8126cc6b..67027d3f9d 100644
--- a/source3/librpc/gen_ndr/srv_eventlog.c
+++ b/source3/librpc/gen_ndr/srv_eventlog.c
@@ -261,7 +261,7 @@ static BOOL api_eventlog_GetNumRecords(pipes_struct *p)
NDR_PRINT_IN_DEBUG(eventlog_GetNumRecords, &r);
ZERO_STRUCT(r.out);
- r.out.number = talloc_size(mem_ctx, sizeof(*r.out.number));
+ r.out.number = talloc_zero_size(mem_ctx, sizeof(*r.out.number));
if (r.out.number == NULL) {
talloc_free(mem_ctx);
return False;
@@ -436,7 +436,7 @@ static BOOL api_eventlog_OpenEventLogW(pipes_struct *p)
NDR_PRINT_IN_DEBUG(eventlog_OpenEventLogW, &r);
ZERO_STRUCT(r.out);
- r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
+ r.out.handle = talloc_zero_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
talloc_free(mem_ctx);
return False;
@@ -611,19 +611,19 @@ static BOOL api_eventlog_ReadEventLogW(pipes_struct *p)
NDR_PRINT_IN_DEBUG(eventlog_ReadEventLogW, &r);
ZERO_STRUCT(r.out);
- r.out.data = talloc_array_size(mem_ctx, sizeof(*r.out.data), r.in.number_of_bytes);
+ r.out.data = talloc_zero_size(mem_ctx, sizeof(*r.out.data) * r.in.number_of_bytes);
if (r.out.data == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.sent_size = talloc_size(mem_ctx, sizeof(*r.out.sent_size));
+ r.out.sent_size = talloc_zero_size(mem_ctx, sizeof(*r.out.sent_size));
if (r.out.sent_size == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.real_size = talloc_size(mem_ctx, sizeof(*r.out.real_size));
+ r.out.real_size = talloc_zero_size(mem_ctx, sizeof(*r.out.real_size));
if (r.out.real_size == NULL) {
talloc_free(mem_ctx);
return False;