From 12c9d7fa6f1d0fe20d71a5c57f009527620bdeb8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 29 Dec 2008 19:50:39 +0100 Subject: Simplify invalidate_all_vuids() slightly invalidate_vuid takes care of removing the user_struct from validated_users --- source3/smbd/password.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source3/smbd/password.c') 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); } } -- cgit