1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

fixed dircahe bug

(This used to be commit 050f941e21aeb57ab47ac9d29fb4acfceab45087)
This commit is contained in:
Samba Release Account 1996-08-24 01:32:51 +00:00
parent 1c1d83dde7
commit 8c41ad5614

View File

@ -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);