git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a529b2e
)
Revert "Second half of 50c891d3: Correctly clear the vuid cache"
author
Volker Lendecke
<vl@samba.org>
Mon, 5 May 2008 13:06:30 +0000
(15:06 +0200)
committer
Volker Lendecke
<vl@samba.org>
Mon, 5 May 2008 13:06:30 +0000
(15:06 +0200)
This reverts commit
0aea404b0a83736ba2884cc7cf00cd797aab1f56
.
(This used to be commit
fa39f47f5fc2df0f1a59705e30a799518c353b45
)
source3/smbd/conn.c
patch
|
blob
|
history
diff --git
a/source3/smbd/conn.c
b/source3/smbd/conn.c
index ce0705377f2d02282057ccc479c31b4937e9380a..af18e905c08576ec9b81ac6ed75e9cac304051fa 100644
(file)
--- 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;