summaryrefslogtreecommitdiffstats
path: root/source3/winbindd
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2013-09-16 13:18:17 +0200
committerChristian Ambach <ambi@samba.org>2013-12-10 14:29:53 +0100
commit7393781a57891687b464762b0954e6c936f750bb (patch)
tree479cd9e7355872ad7aa207bf3ff75a3b535c7bb2 /source3/winbindd
parenta24c25bddeafefe7de713dbbd26ac3ee6d50a61f (diff)
downloadsamba-7393781a57891687b464762b0954e6c936f750bb.tar.gz
samba-7393781a57891687b464762b0954e6c936f750bb.tar.xz
samba-7393781a57891687b464762b0954e6c936f750bb.zip
s3:winbindd fix use of uninitialized variables
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10280 Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cache.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 276ec8e4ab9..b9cfd826dcb 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -2126,6 +2126,19 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain,
old_status) {
have_mapped = have_unmapped = false;
+ *names = talloc_array(mem_ctx, char *, num_rids);
+ if (*names != NULL) {
+ result = NT_STATUS_NO_MEMORY;
+ goto error;
+ }
+
+ *types = talloc_array(mem_ctx, enum lsa_SidType,
+ num_rids);
+ if (*types != NULL) {
+ result = NT_STATUS_NO_MEMORY;
+ goto error;
+ }
+
for (i=0; i<num_rids; i++) {
struct dom_sid sid;
struct cache_entry *centry;