summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_lsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/srv_lsa.c')
-rw-r--r--source3/librpc/gen_ndr/srv_lsa.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/source3/librpc/gen_ndr/srv_lsa.c b/source3/librpc/gen_ndr/srv_lsa.c
index c9780580d6..86f41db1bf 100644
--- a/source3/librpc/gen_ndr/srv_lsa.c
+++ b/source3/librpc/gen_ndr/srv_lsa.c
@@ -31,6 +31,7 @@ static BOOL api_lsa_Close(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
r.out.result = _lsa_Close(p, r.in.handle);
@@ -132,6 +133,7 @@ static BOOL api_lsa_EnumPrivs(pipes_struct *p)
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));
if (r.out.privs == NULL) {
@@ -189,6 +191,7 @@ static BOOL api_lsa_QuerySecurity(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.sdbuf = talloc_size(mem_ctx, sizeof(*r.out.sdbuf));
if (r.out.sdbuf == NULL) {
talloc_free(mem_ctx);
@@ -345,6 +348,7 @@ static BOOL api_lsa_OpenPolicy(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
talloc_free(mem_ctx);
@@ -401,6 +405,7 @@ static BOOL api_lsa_QueryInfoPolicy(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
talloc_free(mem_ctx);
@@ -557,6 +562,7 @@ static BOOL api_lsa_CreateAccount(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.acct_handle = talloc_size(mem_ctx, sizeof(*r.out.acct_handle));
if (r.out.acct_handle == NULL) {
talloc_free(mem_ctx);
@@ -613,6 +619,7 @@ static BOOL api_lsa_EnumAccounts(pipes_struct *p)
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));
if (r.out.sids == NULL) {
@@ -670,6 +677,7 @@ static BOOL api_lsa_CreateTrustedDomain(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
talloc_free(mem_ctx);
@@ -726,6 +734,7 @@ static BOOL api_lsa_EnumTrustDom(pipes_struct *p)
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));
if (r.out.domains == NULL) {
@@ -783,6 +792,7 @@ static BOOL api_lsa_LookupNames(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
@@ -841,6 +851,7 @@ static BOOL api_lsa_LookupSids(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
@@ -899,6 +910,7 @@ static BOOL api_lsa_CreateSecret(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.sec_handle = talloc_size(mem_ctx, sizeof(*r.out.sec_handle));
if (r.out.sec_handle == NULL) {
talloc_free(mem_ctx);
@@ -955,6 +967,7 @@ static BOOL api_lsa_OpenAccount(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.acct_handle = talloc_size(mem_ctx, sizeof(*r.out.acct_handle));
if (r.out.acct_handle == NULL) {
talloc_free(mem_ctx);
@@ -1011,6 +1024,7 @@ static BOOL api_lsa_EnumPrivsAccount(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.privs = talloc_size(mem_ctx, sizeof(*r.out.privs));
if (r.out.privs == NULL) {
talloc_free(mem_ctx);
@@ -1367,6 +1381,7 @@ static BOOL api_lsa_OpenTrustedDomain(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
talloc_free(mem_ctx);
@@ -1423,6 +1438,7 @@ static BOOL api_lsa_QueryTrustedDomainInfo(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
talloc_free(mem_ctx);
@@ -1529,6 +1545,7 @@ static BOOL api_lsa_OpenSecret(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.sec_handle = talloc_size(mem_ctx, sizeof(*r.out.sec_handle));
if (r.out.sec_handle == NULL) {
talloc_free(mem_ctx);
@@ -1635,6 +1652,7 @@ static BOOL api_lsa_QuerySecret(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.new_val = r.in.new_val;
r.out.new_mtime = r.in.new_mtime;
r.out.old_val = r.in.old_val;
@@ -1689,6 +1707,7 @@ static BOOL api_lsa_LookupPrivValue(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.luid = talloc_size(mem_ctx, sizeof(*r.out.luid));
if (r.out.luid == NULL) {
talloc_free(mem_ctx);
@@ -1745,6 +1764,7 @@ static BOOL api_lsa_LookupPrivName(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.name = talloc_size(mem_ctx, sizeof(*r.out.name));
if (r.out.name == NULL) {
talloc_free(mem_ctx);
@@ -1801,6 +1821,7 @@ static BOOL api_lsa_LookupPrivDisplayName(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.disp_name = talloc_size(mem_ctx, sizeof(*r.out.disp_name));
if (r.out.disp_name == NULL) {
talloc_free(mem_ctx);
@@ -1908,6 +1929,7 @@ static BOOL api_lsa_EnumAccountsWithUserRight(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.sids = talloc_size(mem_ctx, sizeof(*r.out.sids));
if (r.out.sids == NULL) {
talloc_free(mem_ctx);
@@ -1964,6 +1986,7 @@ static BOOL api_lsa_EnumAccountRights(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.rights = talloc_size(mem_ctx, sizeof(*r.out.rights));
if (r.out.rights == NULL) {
talloc_free(mem_ctx);
@@ -2120,6 +2143,7 @@ static BOOL api_lsa_QueryTrustedDomainInfoBySid(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
talloc_free(mem_ctx);
@@ -2376,6 +2400,7 @@ static BOOL api_lsa_OpenPolicy2(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.handle = talloc_size(mem_ctx, sizeof(*r.out.handle));
if (r.out.handle == NULL) {
talloc_free(mem_ctx);
@@ -2432,6 +2457,7 @@ static BOOL api_lsa_GetUserName(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.account_name = r.in.account_name;
r.out.authority_name = r.in.authority_name;
r.out.result = _lsa_GetUserName(p, r.in.system_name, r.in.account_name, r.in.authority_name);
@@ -2484,6 +2510,7 @@ static BOOL api_lsa_QueryInfoPolicy2(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
talloc_free(mem_ctx);
@@ -2590,6 +2617,7 @@ static BOOL api_lsa_QueryTrustedDomainInfoByName(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
talloc_free(mem_ctx);
@@ -2696,6 +2724,7 @@ static BOOL api_lsa_EnumTrustedDomainsEx(pipes_struct *p)
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));
if (r.out.domains == NULL) {
@@ -2803,6 +2832,7 @@ static BOOL api_lsa_CloseTrustedDomainEx(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.handle = r.in.handle;
r.out.result = _lsa_CloseTrustedDomainEx(p, r.in.handle);
@@ -2854,6 +2884,7 @@ static BOOL api_lsa_QueryDomainInformationPolicy(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.info = talloc_size(mem_ctx, sizeof(*r.out.info));
if (r.out.info == NULL) {
talloc_free(mem_ctx);
@@ -2960,6 +2991,7 @@ static BOOL api_lsa_OpenTrustedDomainByName(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.trustdom_handle = talloc_size(mem_ctx, sizeof(*r.out.trustdom_handle));
if (r.out.trustdom_handle == NULL) {
talloc_free(mem_ctx);
@@ -3066,6 +3098,7 @@ static BOOL api_lsa_LookupSids2(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
@@ -3124,6 +3157,7 @@ static BOOL api_lsa_LookupNames2(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
@@ -3632,6 +3666,7 @@ static BOOL api_lsa_LookupNames3(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
@@ -4040,6 +4075,7 @@ static BOOL api_lsa_LookupSids3(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);
@@ -4098,6 +4134,7 @@ static BOOL api_lsa_LookupNames4(pipes_struct *p)
return False;
}
+ ZERO_STRUCT(r.out);
r.out.domains = talloc_size(mem_ctx, sizeof(*r.out.domains));
if (r.out.domains == NULL) {
talloc_free(mem_ctx);