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

git-svn: trunk@1288
remotes/push_mirror/metadata
Tomasz Kojm 21 years ago
parent 5c8e3d6ecb
commit 2ccd4c2f64
  1. 1
      clamav-devel/AUTHORS
  2. 5
      clamav-devel/ChangeLog
  3. 4
      clamav-devel/freshclam/manager.c

@ -149,6 +149,7 @@ David Santinoli <david*santinoli.com>
Vijay Sarvepalli <vssarvep*office.uncg.edu>
Theo Schlossnagle <jesus*omniti.com>
Matthew Seaman <m.seaman*infracaninophile.co.uk>
Sven Strickroth <sstrickroth*gym-oha.de>
Matt Sullivan <matt*sullivan.gen.nz>
Joe Talbott <josepht*cstone.net>
Gernot Tenchio <g.tenchio*telco-tech.de>

@ -1,3 +1,8 @@
Thu Jan 27 01:35:35 CET 2005 (tk)
---------------------------------
* freshclam/manager.c: add support for HTTP/1.0 ansers in IMS (--no-dns) mode
(patch by Sven Strickroth <sstrickroth@gym-oha.de>)
Wed Jan 26 19:27:57 CET 2005 (tk)
---------------------------------
V 0.81

@ -567,13 +567,13 @@ struct cl_cvd *remote_cvdhead(const char *file, int socketfd, const char *hostna
return NULL;
}
if((strstr(buffer, "HTTP/1.1 404")) != NULL) {
if((strstr(buffer, "HTTP/1.1 404")) != NULL || (strstr(buffer, "HTTP/1.0 404")) != NULL) {
mprintf("@CVD file not found on remote server\n");
return NULL;
}
/* check whether the resource is up-to-date */
if((strstr(buffer, "HTTP/1.1 304")) != NULL) {
if((strstr(buffer, "HTTP/1.1 304")) != NULL || (strstr(buffer, "HTTP/1.0 304")) != NULL) {
*ims = 0;
mprintf("OK (IMS)\n");

Loading…
Cancel
Save