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;
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;
NDR_PRINT_IN_DEBUG(echo_AddOne, &r);
ZERO_STRUCT(r.out);
- r.out.out_data = talloc_size(mem_ctx, sizeof(*r.out.out_data));
+ r.out.out_data = talloc_zero_size(mem_ctx, sizeof(*r.out.out_data));
if (r.out.out_data == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(echo_EchoData, &r);
ZERO_STRUCT(r.out);
- r.out.out_data = talloc_array_size(mem_ctx, sizeof(*r.out.out_data), r.in.len);
+ r.out.out_data = talloc_zero_size(mem_ctx, sizeof(*r.out.out_data) * r.in.len);
if (r.out.out_data == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(echo_SourceData, &r);
ZERO_STRUCT(r.out);
- r.out.data = talloc_array_size(mem_ctx, sizeof(*r.out.data), r.in.len);
+ r.out.data = talloc_zero_size(mem_ctx, sizeof(*r.out.data) * r.in.len);
if (r.out.data == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(echo_TestCall, &r);
ZERO_STRUCT(r.out);
- r.out.s2 = talloc_size(mem_ctx, sizeof(*r.out.s2));
+ r.out.s2 = talloc_zero_size(mem_ctx, sizeof(*r.out.s2));
if (r.out.s2 == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(echo_TestCall2, &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;
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;
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;
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;
ZERO_STRUCT(r.out);
r.out.resume_handle = r.in.resume_handle;
- r.out.privs = talloc_size(mem_ctx, sizeof(*r.out.privs));
+ r.out.privs = talloc_zero_size(mem_ctx, sizeof(*r.out.privs));
if (r.out.privs == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_QuerySecurity, &r);
ZERO_STRUCT(r.out);
- r.out.sdbuf = talloc_size(mem_ctx, sizeof(*r.out.sdbuf));
+ r.out.sdbuf = talloc_zero_size(mem_ctx, sizeof(*r.out.sdbuf));
if (r.out.sdbuf == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_OpenPolicy, &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;
NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy, &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;
NDR_PRINT_IN_DEBUG(lsa_CreateAccount, &r);
ZERO_STRUCT(r.out);
- r.out.acct_handle = talloc_size(mem_ctx, sizeof(*r.out.acct_handle));
+ r.out.acct_handle = talloc_zero_size(mem_ctx, sizeof(*r.out.acct_handle));
if (r.out.acct_handle == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.resume_handle = r.in.resume_handle;
- r.out.sids = talloc_size(mem_ctx, sizeof(*r.out.sids));
+ r.out.sids = talloc_zero_size(mem_ctx, sizeof(*r.out.sids));
if (r.out.sids == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_CreateTrustedDomain, &r);
ZERO_STRUCT(r.out);
- r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
+ r.out.trustdom_handle = talloc_zero_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.resume_handle = r.in.resume_handle;
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupNames, &r);
ZERO_STRUCT(r.out);
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupSids, &r);
ZERO_STRUCT(r.out);
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_CreateSecret, &r);
ZERO_STRUCT(r.out);
- r.out.sec_handle = talloc_size(mem_ctx, sizeof(*r.out.sec_handle));
+ r.out.sec_handle = talloc_zero_size(mem_ctx, sizeof(*r.out.sec_handle));
if (r.out.sec_handle == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_OpenAccount, &r);
ZERO_STRUCT(r.out);
- r.out.acct_handle = talloc_size(mem_ctx, sizeof(*r.out.acct_handle));
+ r.out.acct_handle = talloc_zero_size(mem_ctx, sizeof(*r.out.acct_handle));
if (r.out.acct_handle == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_EnumPrivsAccount, &r);
ZERO_STRUCT(r.out);
- r.out.privs = talloc_size(mem_ctx, sizeof(*r.out.privs));
+ r.out.privs = talloc_zero_size(mem_ctx, sizeof(*r.out.privs));
if (r.out.privs == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomain, &r);
ZERO_STRUCT(r.out);
- r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
+ r.out.trustdom_handle = talloc_zero_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfo, &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;
NDR_PRINT_IN_DEBUG(lsa_OpenSecret, &r);
ZERO_STRUCT(r.out);
- r.out.sec_handle = talloc_size(mem_ctx, sizeof(*r.out.sec_handle));
+ r.out.sec_handle = talloc_zero_size(mem_ctx, sizeof(*r.out.sec_handle));
if (r.out.sec_handle == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupPrivValue, &r);
ZERO_STRUCT(r.out);
- r.out.luid = talloc_size(mem_ctx, sizeof(*r.out.luid));
+ r.out.luid = talloc_zero_size(mem_ctx, sizeof(*r.out.luid));
if (r.out.luid == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupPrivName, &r);
ZERO_STRUCT(r.out);
- r.out.name = talloc_size(mem_ctx, sizeof(*r.out.name));
+ r.out.name = talloc_zero_size(mem_ctx, sizeof(*r.out.name));
if (r.out.name == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupPrivDisplayName, &r);
ZERO_STRUCT(r.out);
- r.out.disp_name = talloc_size(mem_ctx, sizeof(*r.out.disp_name));
+ r.out.disp_name = talloc_zero_size(mem_ctx, sizeof(*r.out.disp_name));
if (r.out.disp_name == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_EnumAccountsWithUserRight, &r);
ZERO_STRUCT(r.out);
- r.out.sids = talloc_size(mem_ctx, sizeof(*r.out.sids));
+ r.out.sids = talloc_zero_size(mem_ctx, sizeof(*r.out.sids));
if (r.out.sids == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_EnumAccountRights, &r);
ZERO_STRUCT(r.out);
- r.out.rights = talloc_size(mem_ctx, sizeof(*r.out.rights));
+ r.out.rights = talloc_zero_size(mem_ctx, sizeof(*r.out.rights));
if (r.out.rights == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoBySid, &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;
NDR_PRINT_IN_DEBUG(lsa_OpenPolicy2, &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;
NDR_PRINT_IN_DEBUG(lsa_QueryInfoPolicy2, &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;
NDR_PRINT_IN_DEBUG(lsa_QueryTrustedDomainInfoByName, &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;
ZERO_STRUCT(r.out);
r.out.resume_handle = r.in.resume_handle;
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_QueryDomainInformationPolicy, &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;
NDR_PRINT_IN_DEBUG(lsa_OpenTrustedDomainByName, &r);
ZERO_STRUCT(r.out);
- r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
+ r.out.trustdom_handle = talloc_zero_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupSids2, &r);
ZERO_STRUCT(r.out);
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupNames2, &r);
ZERO_STRUCT(r.out);
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupNames3, &r);
ZERO_STRUCT(r.out);
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupSids3, &r);
ZERO_STRUCT(r.out);
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(lsa_LookupNames4, &r);
ZERO_STRUCT(r.out);
- r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
+ r.out.domains = talloc_zero_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_LogonUasLogon, &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;
NDR_PRINT_IN_DEBUG(netr_LogonUasLogoff, &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;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
- r.out.validation = talloc_size(mem_ctx, sizeof(*r.out.validation));
+ r.out.validation = talloc_zero_size(mem_ctx, sizeof(*r.out.validation));
if (r.out.validation == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.authoritative = talloc_size(mem_ctx, sizeof(*r.out.authoritative));
+ r.out.authoritative = talloc_zero_size(mem_ctx, sizeof(*r.out.authoritative));
if (r.out.authoritative == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet, &r);
ZERO_STRUCT(r.out);
- r.out.return_authenticator = talloc_size(mem_ctx, sizeof(*r.out.return_authenticator));
+ r.out.return_authenticator = talloc_zero_size(mem_ctx, sizeof(*r.out.return_authenticator));
if (r.out.return_authenticator == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.sequence_num = r.in.sequence_num;
- r.out.delta_enum_array = talloc_size(mem_ctx, sizeof(*r.out.delta_enum_array));
+ r.out.delta_enum_array = talloc_zero_size(mem_ctx, sizeof(*r.out.delta_enum_array));
if (r.out.delta_enum_array == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.sync_context = r.in.sync_context;
- r.out.delta_enum_array = talloc_size(mem_ctx, sizeof(*r.out.delta_enum_array));
+ r.out.delta_enum_array = talloc_zero_size(mem_ctx, sizeof(*r.out.delta_enum_array));
if (r.out.delta_enum_array == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
- r.out.buffer = talloc_size(mem_ctx, sizeof(*r.out.buffer));
+ r.out.buffer = talloc_zero_size(mem_ctx, sizeof(*r.out.buffer));
if (r.out.buffer == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.count_returned = talloc_size(mem_ctx, sizeof(*r.out.count_returned));
+ r.out.count_returned = talloc_zero_size(mem_ctx, sizeof(*r.out.count_returned));
if (r.out.count_returned == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.total_entries = talloc_size(mem_ctx, sizeof(*r.out.total_entries));
+ r.out.total_entries = talloc_zero_size(mem_ctx, sizeof(*r.out.total_entries));
if (r.out.total_entries == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.recordid = talloc_size(mem_ctx, sizeof(*r.out.recordid));
+ r.out.recordid = talloc_zero_size(mem_ctx, sizeof(*r.out.recordid));
if (r.out.recordid == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
- r.out.buffer = talloc_size(mem_ctx, sizeof(*r.out.buffer));
+ r.out.buffer = talloc_zero_size(mem_ctx, sizeof(*r.out.buffer));
if (r.out.buffer == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.count_returned = talloc_size(mem_ctx, sizeof(*r.out.count_returned));
+ r.out.count_returned = talloc_zero_size(mem_ctx, sizeof(*r.out.count_returned));
if (r.out.count_returned == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.total_entries = talloc_size(mem_ctx, sizeof(*r.out.total_entries));
+ r.out.total_entries = talloc_zero_size(mem_ctx, sizeof(*r.out.total_entries));
if (r.out.total_entries == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.next_reference = talloc_size(mem_ctx, sizeof(*r.out.next_reference));
+ r.out.next_reference = talloc_zero_size(mem_ctx, sizeof(*r.out.next_reference));
if (r.out.next_reference == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_GetDcName, &r);
ZERO_STRUCT(r.out);
- r.out.dcname = talloc_size(mem_ctx, sizeof(*r.out.dcname));
+ r.out.dcname = talloc_zero_size(mem_ctx, sizeof(*r.out.dcname));
if (r.out.dcname == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_LogonControl, &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;
NDR_PRINT_IN_DEBUG(netr_GetAnyDCName, &r);
ZERO_STRUCT(r.out);
- r.out.dcname = talloc_size(mem_ctx, sizeof(*r.out.dcname));
+ r.out.dcname = talloc_zero_size(mem_ctx, sizeof(*r.out.dcname));
if (r.out.dcname == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_LogonControl2, &r);
ZERO_STRUCT(r.out);
- r.out.query = talloc_size(mem_ctx, sizeof(*r.out.query));
+ r.out.query = talloc_zero_size(mem_ctx, sizeof(*r.out.query));
if (r.out.query == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
r.out.sync_context = r.in.sync_context;
- r.out.delta_enum_array = talloc_size(mem_ctx, sizeof(*r.out.delta_enum_array));
+ r.out.delta_enum_array = talloc_zero_size(mem_ctx, sizeof(*r.out.delta_enum_array));
if (r.out.delta_enum_array == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
- r.out.delta_enum_array = talloc_size(mem_ctx, sizeof(*r.out.delta_enum_array));
+ r.out.delta_enum_array = talloc_zero_size(mem_ctx, sizeof(*r.out.delta_enum_array));
if (r.out.delta_enum_array == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_LogonControl2Ex, &r);
ZERO_STRUCT(r.out);
- r.out.query = talloc_size(mem_ctx, sizeof(*r.out.query));
+ r.out.query = talloc_zero_size(mem_ctx, sizeof(*r.out.query));
if (r.out.query == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_DsRGetDCName, &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;
ZERO_STRUCT(r.out);
r.out.credentials = r.in.credentials;
r.out.negotiate_flags = r.in.negotiate_flags;
- r.out.rid = talloc_size(mem_ctx, sizeof(*r.out.rid));
+ r.out.rid = talloc_zero_size(mem_ctx, sizeof(*r.out.rid));
if (r.out.rid == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx, &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;
NDR_PRINT_IN_DEBUG(netr_DsRGetSiteName, &r);
ZERO_STRUCT(r.out);
- r.out.site = talloc_size(mem_ctx, sizeof(*r.out.site));
+ r.out.site = talloc_zero_size(mem_ctx, sizeof(*r.out.site));
if (r.out.site == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
- 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;
NDR_PRINT_IN_DEBUG(netr_ServerPasswordSet2, &r);
ZERO_STRUCT(r.out);
- r.out.return_authenticator = talloc_size(mem_ctx, sizeof(*r.out.return_authenticator));
+ r.out.return_authenticator = talloc_zero_size(mem_ctx, sizeof(*r.out.return_authenticator));
if (r.out.return_authenticator == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_DsRGetDCNameEx2, &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;
NDR_PRINT_IN_DEBUG(netr_LogonSamLogonEx, &r);
ZERO_STRUCT(r.out);
- r.out.validation = talloc_size(mem_ctx, sizeof(*r.out.validation));
+ r.out.validation = talloc_zero_size(mem_ctx, sizeof(*r.out.validation));
if (r.out.validation == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.authoritative = talloc_size(mem_ctx, sizeof(*r.out.authoritative));
+ r.out.authoritative = talloc_zero_size(mem_ctx, sizeof(*r.out.authoritative));
if (r.out.authoritative == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(netr_DsrEnumerateDomainTrusts, &r);
ZERO_STRUCT(r.out);
- r.out.count = talloc_size(mem_ctx, sizeof(*r.out.count));
+ r.out.count = talloc_zero_size(mem_ctx, sizeof(*r.out.count));
if (r.out.count == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.trusts = talloc_array_size(mem_ctx, sizeof(*r.out.trusts), count);
+ r.out.trusts = talloc_zero_size(mem_ctx, sizeof(*r.out.trusts) * count);
if (r.out.trusts == NULL) {
talloc_free(mem_ctx);
return False;
ZERO_STRUCT(r.out);
r.out.return_authenticator = r.in.return_authenticator;
- r.out.validation = talloc_size(mem_ctx, sizeof(*r.out.validation));
+ r.out.validation = talloc_zero_size(mem_ctx, sizeof(*r.out.validation));
if (r.out.validation == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.authoritative = talloc_size(mem_ctx, sizeof(*r.out.authoritative));
+ r.out.authoritative = talloc_zero_size(mem_ctx, sizeof(*r.out.authoritative));
if (r.out.authoritative == NULL) {
talloc_free(mem_ctx);
return False;
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;
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;
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;
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;
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;
NDR_PRINT_IN_DEBUG(winreg_OpenHKCR, &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;
NDR_PRINT_IN_DEBUG(winreg_OpenHKCU, &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;
NDR_PRINT_IN_DEBUG(winreg_OpenHKLM, &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;
NDR_PRINT_IN_DEBUG(winreg_OpenHKPD, &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;
NDR_PRINT_IN_DEBUG(winreg_OpenHKU, &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;
NDR_PRINT_IN_DEBUG(winreg_CreateKey, &r);
ZERO_STRUCT(r.out);
- r.out.new_handle = talloc_size(mem_ctx, sizeof(*r.out.new_handle));
+ r.out.new_handle = talloc_zero_size(mem_ctx, sizeof(*r.out.new_handle));
if (r.out.new_handle == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(winreg_OpenKey, &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;
NDR_PRINT_IN_DEBUG(winreg_QueryInfoKey, &r);
ZERO_STRUCT(r.out);
- r.out.class_out = talloc_size(mem_ctx, sizeof(*r.out.class_out));
+ r.out.class_out = talloc_zero_size(mem_ctx, sizeof(*r.out.class_out));
if (r.out.class_out == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.num_subkeys = talloc_size(mem_ctx, sizeof(*r.out.num_subkeys));
+ r.out.num_subkeys = talloc_zero_size(mem_ctx, sizeof(*r.out.num_subkeys));
if (r.out.num_subkeys == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.max_subkeylen = talloc_size(mem_ctx, sizeof(*r.out.max_subkeylen));
+ r.out.max_subkeylen = talloc_zero_size(mem_ctx, sizeof(*r.out.max_subkeylen));
if (r.out.max_subkeylen == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.max_subkeysize = talloc_size(mem_ctx, sizeof(*r.out.max_subkeysize));
+ r.out.max_subkeysize = talloc_zero_size(mem_ctx, sizeof(*r.out.max_subkeysize));
if (r.out.max_subkeysize == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.num_values = talloc_size(mem_ctx, sizeof(*r.out.num_values));
+ r.out.num_values = talloc_zero_size(mem_ctx, sizeof(*r.out.num_values));
if (r.out.num_values == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.max_valnamelen = talloc_size(mem_ctx, sizeof(*r.out.max_valnamelen));
+ r.out.max_valnamelen = talloc_zero_size(mem_ctx, sizeof(*r.out.max_valnamelen));
if (r.out.max_valnamelen == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.max_valbufsize = talloc_size(mem_ctx, sizeof(*r.out.max_valbufsize));
+ r.out.max_valbufsize = talloc_zero_size(mem_ctx, sizeof(*r.out.max_valbufsize));
if (r.out.max_valbufsize == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.secdescsize = talloc_size(mem_ctx, sizeof(*r.out.secdescsize));
+ r.out.secdescsize = talloc_zero_size(mem_ctx, sizeof(*r.out.secdescsize));
if (r.out.secdescsize == NULL) {
talloc_free(mem_ctx);
return False;
}
- r.out.last_changed_time = talloc_size(mem_ctx, sizeof(*r.out.last_changed_time));
+ r.out.last_changed_time = talloc_zero_size(mem_ctx, sizeof(*r.out.last_changed_time));
if (r.out.last_changed_time == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(winreg_GetVersion, &r);
ZERO_STRUCT(r.out);
- r.out.version = talloc_size(mem_ctx, sizeof(*r.out.version));
+ r.out.version = talloc_zero_size(mem_ctx, sizeof(*r.out.version));
if (r.out.version == NULL) {
talloc_free(mem_ctx);
return False;
NDR_PRINT_IN_DEBUG(winreg_OpenHKCC, &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;
NDR_PRINT_IN_DEBUG(winreg_OpenHKDD, &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;
NDR_PRINT_IN_DEBUG(winreg_OpenHKPT, &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;
NDR_PRINT_IN_DEBUG(winreg_OpenHKPN, &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;
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;
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;
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;