Browse code

don't stick to a broken mirror when downloading cvd

git-svn: trunk@2706

Tomasz Kojm authored on 2007/02/12 21:13:15
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Mon Feb 12 13:12:12 CET 2007 (tk)
2
+---------------------------------
3
+  * freshclam/manager.c: don't stick to a broken mirror when downloading cvd
4
+
1 5
 Mon Feb 12 11:44:21 CET 2007 (tk)
2 6
 ---------------------------------
3 7
   * libclamav/md5.c: revert problematic cleanup changes and rename functions
... ...
@@ -960,8 +960,10 @@ static int updatedb(const char *dbname, const char *hostname, char *ip, int *sig
960 960
 
961 961
     if(nodb) {
962 962
 	ret = getcvd(dbfile, hostname, ip, localip, proxy, port, user, pass, uas, nodb, newver, ctimeout, rtimeout, mdat);
963
-	if(ret)
963
+	if(ret) {
964
+	    memset(ip, 0, 16);
964 965
 	    return ret;
966
+	}
965 967
 
966 968
     } else {
967 969
 	ret = 0;