summaryrefslogtreecommitdiff
path: root/source3/smbd/password.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-29 19:50:39 +0100
committerVolker Lendecke <vl@samba.org>2008-12-30 11:26:10 +0100
commit12c9d7fa6f1d0fe20d71a5c57f009527620bdeb8 (patch)
treec3c86a78a9d4bb024a9d9055eab366ce103eb58d /source3/smbd/password.c
parent332e8ac6c4db8a12db853eb2a353ff7b4b416157 (diff)
downloadsamba-12c9d7fa6f1d0fe20d71a5c57f009527620bdeb8.tar.gz
samba-12c9d7fa6f1d0fe20d71a5c57f009527620bdeb8.tar.bz2
samba-12c9d7fa6f1d0fe20d71a5c57f009527620bdeb8.zip
Simplify invalidate_all_vuids() slightly
invalidate_vuid takes care of removing the user_struct from validated_users
Diffstat (limited to 'source3/smbd/password.c')
-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);
}
}