diff options
author | Christian Ambach <ambi@samba.org> | 2013-09-16 13:18:17 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2013-12-10 14:29:53 +0100 |
commit | 7393781a57891687b464762b0954e6c936f750bb (patch) | |
tree | 479cd9e7355872ad7aa207bf3ff75a3b535c7bb2 /source3/winbindd/winbindd_cache.c | |
parent | a24c25bddeafefe7de713dbbd26ac3ee6d50a61f (diff) | |
download | samba-7393781a57891687b464762b0954e6c936f750bb.tar.gz |
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/winbindd_cache.c')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 13 |
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; |