Browse code

don't blacklist mirrors for error 404

git-svn: trunk@2695

Tomasz Kojm authored on 2007/02/10 23:46:14
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Sat Feb 10 15:44:33 CET 2007 (tk)
2
+---------------------------------
3
+  * freshclam/manager.c: don't blacklist mirrors for error 404
4
+
1 5
 Sat Feb 10 14:22:29 GMT 2007 (njh)
2 6
 ----------------------------------
3 7
   * libclamav:	Removed warnings introduced by the stricter argument checks
... ...
@@ -404,7 +404,7 @@ static struct cl_cvd *remote_cvdhead(const char *file, const char *hostname, cha
404 404
 
405 405
     if((strstr(buffer, "HTTP/1.1 404")) != NULL || (strstr(buffer, "HTTP/1.0 404")) != NULL) { 
406 406
 	logg("!CVD file not found on remote server\n");
407
-	mirman_update(mdat->currip, mdat, 1);
407
+	/* mirman_update(mdat->currip, mdat, 1); */
408 408
 	return NULL;
409 409
     }
410 410
 
... ...
@@ -564,7 +564,7 @@ static int getfile(const char *srcfile, const char *destfile, const char *hostna
564 564
     /* check whether the resource actually existed or not */
565 565
     if((strstr(buffer, "HTTP/1.1 404")) != NULL || (strstr(buffer, "HTTP/1.0 404")) != NULL) { 
566 566
 	logg("!getfile: %s not found on remote server (IP: %s)\n", srcfile, ipaddr);
567
-	mirman_update(mdat->currip, mdat, 1);
567
+	/* mirman_update(mdat->currip, mdat, 1); */
568 568
 	close(sd);
569 569
 	return 58;
570 570
     }