1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Fix "net usersidlist" not to skip every other user

Remove double increment from for loop over users in get_user_tokens(),
left over from when this used to be a while loop.  Bug was introduced
in 1e39a619.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jan 19 01:34:29 CET 2011 on sn-devel-104
This commit is contained in:
Olly Betts 2011-01-18 10:07:13 +00:00 committed by Jeremy Allison
parent 49969e6aeb
commit f8f1711f61

View File

@ -4386,7 +4386,6 @@ static bool get_user_tokens(struct net_context *c, int *num_tokens,
}
get_user_sids(domain, user, &(result[i].token));
i+=1;
}
TALLOC_FREE(frame);
wbcFreeMemory(users);