summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/password.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c
index 84b40f28cc..11b19d373e 100644
--- a/source3/smbd/password.c
+++ b/source3/smbd/password.c
@@ -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);
}
}