mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
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>
This commit is contained in:
parent
a24c25bdde
commit
7393781a57
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user