Browse code

add support for HTTP/1.0 ansers in IMS (--no-dns) mode

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1288 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2005/01/27 09:49:21
Showing 3 changed files
... ...
@@ -149,6 +149,7 @@ David Santinoli <david*santinoli.com>
149 149
 Vijay Sarvepalli <vssarvep*office.uncg.edu>
150 150
 Theo Schlossnagle <jesus*omniti.com>
151 151
 Matthew Seaman <m.seaman*infracaninophile.co.uk>
152
+Sven Strickroth <sstrickroth*gym-oha.de>
152 153
 Matt Sullivan <matt*sullivan.gen.nz>
153 154
 Joe Talbott <josepht*cstone.net>
154 155
 Gernot Tenchio <g.tenchio*telco-tech.de>
... ...
@@ -1,3 +1,8 @@
1
+Thu Jan 27 01:35:35 CET 2005 (tk)
2
+---------------------------------
3
+  * freshclam/manager.c: add support for HTTP/1.0 ansers in IMS (--no-dns) mode
4
+			 (patch by Sven Strickroth <sstrickroth@gym-oha.de>)
5
+
1 6
 Wed Jan 26 19:27:57 CET 2005 (tk)
2 7
 ---------------------------------
3 8
   V 0.81
... ...
@@ -567,13 +567,13 @@ struct cl_cvd *remote_cvdhead(const char *file, int socketfd, const char *hostna
567 567
 	return NULL;
568 568
     }
569 569
 
570
-    if((strstr(buffer, "HTTP/1.1 404")) != NULL) { 
570
+    if((strstr(buffer, "HTTP/1.1 404")) != NULL || (strstr(buffer, "HTTP/1.0 404")) != NULL) { 
571 571
 	mprintf("@CVD file not found on remote server\n");
572 572
 	return NULL;
573 573
     }
574 574
 
575 575
     /* check whether the resource is up-to-date */
576
-    if((strstr(buffer, "HTTP/1.1 304")) != NULL) { 
576
+    if((strstr(buffer, "HTTP/1.1 304")) != NULL || (strstr(buffer, "HTTP/1.0 304")) != NULL) { 
577 577
 
578 578
 	*ims = 0;
579 579
 	mprintf("OK (IMS)\n");