Re: [Clamav-devel] freshclam-protocol-bug with buggy proxy-s…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Reini Urban
Date:  
To: ClamAV Development
Subject: Re: [Clamav-devel] freshclam-protocol-bug with buggy proxy-servers
Sven Strickroth schrieb:
> freshclam 0.81 prints:
> "ClamAV update process started at Wed Jan 26 22:24:32 2005
> Connecting via 192.168.0.1
> Reading CVD header (main.cvd): ERROR: Malformed CVD header detected.
> ERROR: Can't read main.cvd header from db.de.clamav.net (IP: 192.168.0.1)
> Trying again in 5 secs..."
>
> This issue appears because of the new If-Modified-Since-function in
> combination with a "malformed" answer from some proxy-servers. Two examples:
> "GET http://db.de.clamav.net/main.cvd HTTP/1.1
> Host: db.de.clamav.net
> User-Agent: clamav/0.81
> Connection: close
> Range: bytes=0-511
> If-Modified-Since: Wed, 26 Jan 2005 20:52:11 GMT
>
> HTTP/1.0 304 Use cached copy"
>
> "GET http://db.de.clamav.net/main.cvd HTTP/1.1
> Host: db.de.clamav.net
> User-Agent: clamav/0.81
> Connection: close
>
> HTTP/1.0 200 OK
> Date: Wed, 26 Jan 2005 21:19:06 GMT
> Server: Apache
> Last-Modified: Fri, 14 Jan 2005 20:55:12 GMT
> ETag: "a295a-189e41-41e831b0"
> Accept-Ranges: bytes
> Content-Length: 1613377
> Content-Type: text/plain
>
> ClamAV-VDB:14 Jan 2005 21-46..."
>
> FreshClam uses HTTP/1.1 but the answer is HTTP/1.0
>
> I attached a small patch, which solves this issue.


Great catch! Thanks.

-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel