diff options
author | Volker Lendecke <vl@samba.org> | 2008-05-05 15:06:30 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-05-05 15:06:30 +0200 |
commit | 58c54eb91f0490096c980a4f7aec323953813d64 (patch) | |
tree | 7ffadaf3b1b3217a064d063682eb2bf2fc35477b /source3/smbd | |
parent | a529b2e1c3d5bc51dc0b17331bdc1c14481a12de (diff) | |
download | samba-58c54eb91f0490096c980a4f7aec323953813d64.tar.gz samba-58c54eb91f0490096c980a4f7aec323953813d64.tar.bz2 samba-58c54eb91f0490096c980a4f7aec323953813d64.zip |
Revert "Second half of 50c891d3: Correctly clear the vuid cache"
This reverts commit 0aea404b0a83736ba2884cc7cf00cd797aab1f56.
(This used to be commit fa39f47f5fc2df0f1a59705e30a799518c353b45)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/conn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c index ce0705377f..af18e905c0 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<VUID_CACHE_SIZE; i++) { + for (i=0;i<conn->vuid_cache.entries && 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; |