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

Simplify invalidate_all_vuids() slightly

invalidate_vuid takes care of removing the user_struct from validated_users
This commit is contained in:
Volker Lendecke 2008-12-29 19:50:39 +01:00
parent 332e8ac6c4
commit 12c9d7fa6f

View File

@ -139,11 +139,8 @@ void invalidate_vuid(uint16 vuid)
void invalidate_all_vuids(void)
{
user_struct *usp, *next=NULL;
for (usp=validated_users;usp;usp=next) {
next = usp->next;
invalidate_vuid(usp->vuid);
while (validated_users != NULL) {
invalidate_vuid(validated_users->vuid);
}
}