summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/librpc/gen_ndr/srv_netlogon.c2
-rw-r--r--source3/librpc/gen_ndr/srv_unixinfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/librpc/gen_ndr/srv_netlogon.c b/source3/librpc/gen_ndr/srv_netlogon.c
index 9b87c61853..e964918403 100644
--- a/source3/librpc/gen_ndr/srv_netlogon.c
+++ b/source3/librpc/gen_ndr/srv_netlogon.c
@@ -2836,7 +2836,7 @@ static BOOL api_netr_DsrEnumerateDomainTrusts(pipes_struct *p)
return False;
}
- r.out.trusts = talloc_zero_array(mem_ctx, struct netr_DomainTrust *, count);
+ r.out.trusts = talloc_zero_array(mem_ctx, struct netr_DomainTrust *, r.out.count);
if (r.out.trusts == NULL) {
talloc_free(mem_ctx);
return False;
diff --git a/source3/librpc/gen_ndr/srv_unixinfo.c b/source3/librpc/gen_ndr/srv_unixinfo.c
index 3fbe815870..d02a5561a6 100644
--- a/source3/librpc/gen_ndr/srv_unixinfo.c
+++ b/source3/librpc/gen_ndr/srv_unixinfo.c
@@ -322,7 +322,7 @@ static BOOL api_unixinfo_GetPWUid(pipes_struct *p)
ZERO_STRUCT(r.out);
r.out.count = r.in.count;
- r.out.infos = talloc_zero_array(mem_ctx, struct unixinfo_GetPWUidInfo, *r.in.count);
+ r.out.infos = talloc_zero_array(mem_ctx, struct unixinfo_GetPWUidInfo, *r.out.count);
if (r.out.infos == NULL) {
talloc_free(mem_ctx);
return False;