From 0aea404b0a83736ba2884cc7cf00cd797aab1f56 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 5 May 2008 14:53:49 +0200 Subject: [PATCH] Second half of 50c891d3: Correctly clear the vuid cache --- source/smbd/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/smbd/conn.c b/source/smbd/conn.c index af18e905c08..ce0705377f2 100644 --- a/source/smbd/conn.c +++ b/source/smbd/conn.c @@ -237,7 +237,7 @@ void conn_clear_vuid_cache(uint16 vuid) conn->vuid = UID_FIELD_INVALID; } - for (i=0;ivuid_cache.entries && i< VUID_CACHE_SIZE;i++) { + for (i=0; ivuid_cache.array[i].vuid == vuid) { struct vuid_cache_entry *ent = &conn->vuid_cache.array[i]; ent->vuid = UID_FIELD_INVALID; -- 2.47.3