diff options
author | Samba Release Account <samba-bugs@samba.org> | 1996-08-24 01:32:51 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1996-08-24 01:32:51 +0000 |
commit | 8c41ad5614f4b3e6218cc7a3a21526122b202709 (patch) | |
tree | a1f37c65016ec1f5805449e35976a32ebb162543 /source3/smbd/dir.c | |
parent | 1c1d83dde748665dda958e4e3d4c9f16b5887fd5 (diff) | |
download | samba-8c41ad5614f4b3e6218cc7a3a21526122b202709.tar.gz samba-8c41ad5614f4b3e6218cc7a3a21526122b202709.tar.xz samba-8c41ad5614f4b3e6218cc7a3a21526122b202709.zip |
fixed dircahe bug
(This used to be commit 050f941e21aeb57ab47ac9d29fb4acfceab45087)
Diffstat (limited to 'source3/smbd/dir.c')
-rw-r--r-- | source3/smbd/dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index 42bd54c2703..f2e672987e4 100644 --- a/source3/smbd/dir.c +++ b/source3/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); |