git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@339 77e5149b-7576-45b1-b177-96237e5ba77b
Trog authored on 2004/02/26 19:58:17... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Thu Feb 26 11:02:46 GMT 2004 (trog) |
|
2 |
+----------------------------------- |
|
3 |
+ * libclamav/readdb.c: close directory descriptor leak - caused |
|
4 |
+ "CVD extraction failure" error. |
|
5 |
+ |
|
1 | 6 |
Wed Feb 25 11:07:53 GMT 2004 (trog) |
2 | 7 |
----------------------------------- |
3 | 8 |
* clamd thrmgr: new clean reimplementation |
... | ... |
@@ -336,12 +336,16 @@ int cl_statchkdir(const struct cl_stat *dbstat) |
336 | 336 |
for(i = 0; i < dbstat->no; i++) |
337 | 337 |
if(dbstat->stattab[i].st_ino == sb.st_ino) { |
338 | 338 |
found = 1; |
339 |
- if(dbstat->stattab[i].st_mtime != sb.st_mtime) |
|
339 |
+ if(dbstat->stattab[i].st_mtime != sb.st_mtime) { |
|
340 |
+ closedir(dd); |
|
340 | 341 |
return 1; |
342 |
+ } |
|
341 | 343 |
} |
342 | 344 |
|
343 |
- if(!found) |
|
345 |
+ if(!found) { |
|
346 |
+ closedir(dd); |
|
344 | 347 |
return 1; |
348 |
+ } |
|
345 | 349 |
} |
346 | 350 |
} |
347 | 351 |
} |