summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-05 14:53:49 +0200
committerVolker Lendecke <vl@samba.org>2008-05-05 14:53:49 +0200
commita529b2e1c3d5bc51dc0b17331bdc1c14481a12de (patch)
treea33f6d8d154c56f12720d8b75010310382dea68c /source3
parent8dd53811d57da9a079f81e1f742f803131239b09 (diff)
downloadsamba-a529b2e1c3d5bc51dc0b17331bdc1c14481a12de.tar.gz
samba-a529b2e1c3d5bc51dc0b17331bdc1c14481a12de.tar.bz2
samba-a529b2e1c3d5bc51dc0b17331bdc1c14481a12de.zip
Second half of 50c891d3: Correctly clear the vuid cache
(This used to be commit 0aea404b0a83736ba2884cc7cf00cd797aab1f56)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c
index af18e905c0..ce0705377f 100644
--- a/source3/smbd/conn.c
+++ b/source3/smbd/conn.c
@@ -237,7 +237,7 @@ void conn_clear_vuid_cache(uint16 vuid)
conn->vuid = UID_FIELD_INVALID;
}
- for (i=0;i<conn->vuid_cache.entries && i< VUID_CACHE_SIZE;i++) {
+ for (i=0; i<VUID_CACHE_SIZE; i++) {
if (conn->vuid_cache.array[i].vuid == vuid) {
struct vuid_cache_entry *ent = &conn->vuid_cache.array[i];
ent->vuid = UID_FIELD_INVALID;