summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-08-24 01:32:51 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-08-24 01:32:51 +0000
commit050f941e21aeb57ab47ac9d29fb4acfceab45087 (patch)
treee2326a9007839cf8df381da0d6036f9f178b3167 /source
parente039a506e76eaa9fdc6fb8b4cfd555a3c7f55a83 (diff)
downloadsamba-050f941e21aeb57ab47ac9d29fb4acfceab45087.tar.gz
samba-050f941e21aeb57ab47ac9d29fb4acfceab45087.tar.xz
samba-050f941e21aeb57ab47ac9d29fb4acfceab45087.zip
fixed dircahe bug
Diffstat (limited to 'source')
-rw-r--r--source/smbd/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/dir.c b/source/smbd/dir.c
index 42bd54c2703..f2e672987e4 100644
--- a/source/smbd/dir.c
+++ b/source/smbd/dir.c
@@ -649,9 +649,9 @@ void DirCacheAdd(char *path,char *name,char *dname,int snum)
if (dir_cache_size == DIRCACHESIZE) {
for (entry=dir_cache, count=1;
- entry->next && count < dir_cache_size;
+ entry->next && count < dir_cache_size + 1;
entry=entry->next, count++) ;
- if (entry->next || count != dir_cache_size) {
+ if (entry->next || count != dir_cache_size + 1) {
DEBUG(0,("DirCache bug - please report\n"));
}
free(entry->path);