summaryrefslogtreecommitdiff
path: root/source3/winbindd/idmap_tdb2.c
diff options
context:
space:
mode:
authorBo Yang <boyang@novell.com>2009-03-02 14:19:50 +0800
committerJeremy Allison <jra@samba.org>2009-03-02 15:51:55 -0800
commitdeb73e87b29d59610ab16a8eb021728e782ac8b8 (patch)
tree2afe0e6da1577c066c6a409ac43a4238e6d27c44 /source3/winbindd/idmap_tdb2.c
parent71ffd21d273e691f5f791af08fa011345ebfab11 (diff)
downloadsamba-deb73e87b29d59610ab16a8eb021728e782ac8b8.tar.gz
samba-deb73e87b29d59610ab16a8eb021728e782ac8b8.tar.bz2
samba-deb73e87b29d59610ab16a8eb021728e782ac8b8.zip
More fix to initialize idmap statuses
Diffstat (limited to 'source3/winbindd/idmap_tdb2.c')
-rw-r--r--source3/winbindd/idmap_tdb2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c
index fb90dd097e..b2723270eb 100644
--- a/source3/winbindd/idmap_tdb2.c
+++ b/source3/winbindd/idmap_tdb2.c
@@ -655,6 +655,11 @@ static NTSTATUS idmap_tdb2_unixids_to_sids(struct idmap_domain *dom, struct id_m
NTSTATUS ret;
int i;
+ /* initialize the status to avoid suprise */
+ for (i = 0; ids[i]; i++) {
+ ids[i]->status = ID_UNKNOWN;
+ }
+
ctx = talloc_get_type(dom->private_data, struct idmap_tdb2_context);
for (i = 0; ids[i]; i++) {
@@ -692,6 +697,11 @@ static NTSTATUS idmap_tdb2_sids_to_unixids(struct idmap_domain *dom, struct id_m
NTSTATUS ret;
int i;
+ /* initialize the status to avoid suprise */
+ for (i = 0; ids[i]; i++) {
+ ids[i]->status = ID_UNKNOWN;
+ }
+
ctx = talloc_get_type(dom->private_data, struct idmap_tdb2_context);
for (i = 0; ids[i]; i++) {