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:
parent
332e8ac6c4
commit
12c9d7fa6f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user