git-svn: trunk@2090
Tomasz Kojm authored on 2006/07/17 18:44:15... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Mon Jul 17 11:40:14 CEST 2006 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * freshclam/manager.c: fix NULL pointer dereference in new code, reported |
|
4 |
+ by Gianluigi Tiesi <sherpya*netfarm.it> |
|
5 |
+ |
|
1 | 6 |
Mon Jul 17 03:00:21 CEST 2006 (acab) |
2 | 7 |
------------------------------------ |
3 | 8 |
* libclamav/wwunpack.c: image size fixup |
... | ... |
@@ -854,10 +854,11 @@ int updatedb(const char *dbname, const char *hostname, char *ip, int *signo, con |
854 | 854 |
return 1; |
855 | 855 |
} |
856 | 856 |
|
857 |
- currver = current->version; |
|
858 | 857 |
|
859 |
- if(current) |
|
858 |
+ if(current) { |
|
859 |
+ currver = current->version; |
|
860 | 860 |
cl_cvdfree(current); |
861 |
+ } |
|
861 | 862 |
|
862 | 863 |
/* |
863 | 864 |
if(ipaddr[0]) { |