From 227109f0250b7d3f6b10fe19133cb8ff41199b1b Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Mon, 16 Sep 2013 13:18:17 +0200 Subject: [PATCH] s3:winbindd fix use of uninitialized variables attempt to fix Bug 10280 Bug: https://bugzilla.samba.org/show_bug.cgi?id=10280 --- source3/winbindd/winbindd_cache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 276ec8e..b094343 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -2126,6 +2126,10 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain, old_status) { have_mapped = have_unmapped = false; + *names = talloc_array(mem_ctx, char *, num_rids); + *types = talloc_array(mem_ctx, enum lsa_SidType, + num_rids); + for (i=0; i