diff options
author | Wilco Baan Hofman <wilco@baanhofman.nl> | 2011-10-17 21:24:41 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-10-17 23:32:58 +0200 |
commit | c52b571506874987ba626c25e9692fbe2251b7e2 (patch) | |
tree | 6395116ad959a97140d43970cf1b8169c9bfebe7 | |
parent | c3bdcab5161107be8155a7913d9cb325383a781d (diff) | |
download | samba-c52b571506874987ba626c25e9692fbe2251b7e2.tar.gz samba-c52b571506874987ba626c25e9692fbe2251b7e2.tar.bz2 samba-c52b571506874987ba626c25e9692fbe2251b7e2.zip |
Fix uninitialized memory problem in group_sids_to_info3 (fixes bug #8455).
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Oct 17 23:32:58 CEST 2011 on sn-devel-104
-rw-r--r-- | source3/auth/server_info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c index fd2101024f..5b2706a28a 100644 --- a/source3/auth/server_info.c +++ b/source3/auth/server_info.c @@ -269,8 +269,8 @@ static NTSTATUS group_sids_to_info3(struct netr_SamInfo3 *info3, if (info3->base.primary_gid == rid) continue; /* store domain group rid */ - groups->rids[i].rid = rid; - groups->rids[i].attributes = attributes; + groups->rids[groups->count].rid = rid; + groups->rids[groups->count].attributes = attributes; groups->count++; continue; } |