From clamav-devel-bounces@lists.clamav.net  Thu Jan 27 14:39:41 2005
Return-Path: <clamav-devel-bounces@lists.clamav.net>
X-Original-To: list@krisma.oltrelinux.com
Delivered-To: list@krisma.oltrelinux.com
Received: from localhost (krisma [127.0.0.1])
	by mail.oltrelinux.com (Postfix) with ESMTP id AC20011AE6E
	for <list@krisma.oltrelinux.com>; Thu, 27 Jan 2005 14:39:41 +0100 (CET)
Received: from mail.oltrelinux.com ([127.0.0.1])
	by localhost (krisma.oltrelinux.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 13582-10 for <list@krisma.oltrelinux.com>;
	Thu, 27 Jan 2005 14:39:38 +0100 (CET)
Received: from aj.catt.com (aj.catt.com [64.18.103.6])
	by mail.oltrelinux.com (Postfix) with ESMTP id C887711AE8A
	for <list@krisma.oltrelinux.com>; Thu, 27 Jan 2005 14:39:37 +0100 (CET)
Received: from aj.catt.com (localhost [127.0.0.1])
	by aj.catt.com (Postfix) with ESMTP id 5ED0C15DF41;
	Thu, 27 Jan 2005 08:38:40 -0500 (EST)
Received: from smartmx-06.inode.at (smartmx-06.inode.at [213.229.60.38])
	by aj.catt.com (Postfix) with ESMTP id 507A215DF3E
	for <clamav-devel@lists.clamav.net>;
	Thu, 27 Jan 2005 08:38:18 -0500 (EST)
Received: from [62.99.252.218] (port=64891 helo=[192.168.0.2])
	by smartmx-06.inode.at with esmtp (Exim 4.34) id 1Cu9qk-0001mM-2Z
	for clamav-devel@lists.clamav.net; Thu, 27 Jan 2005 14:38:18 +0100
Message-ID: <41F8EEC9.10404@x-ray.at>
Date: Thu, 27 Jan 2005 14:38:17 +0100
From: Reini Urban <rurban@x-ray.at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT;
	rv:1.7) Gecko/20040616
X-Accept-Language: de, en
MIME-Version: 1.0
To: ClamAV Development <clamav-devel@lists.clamav.net>
Subject: Re: [Clamav-devel] freshclam-protocol-bug with buggy proxy-servers
References: <ct92d3$gu5$1@sea.gmane.org>
In-Reply-To: <ct92d3$gu5$1@sea.gmane.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: clamav-devel@lists.clamav.net
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: ClamAV Development <clamav-devel@lists.clamav.net>
List-Id: ClamAV Development <clamav-devel.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-devel@lists.clamav.net>
List-Help: <mailto:clamav-devel-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel>,
	<mailto:clamav-devel-request@lists.clamav.net?subject=subscribe>
Sender: clamav-devel-bounces@lists.clamav.net
Errors-To: clamav-devel-bounces@lists.clamav.net

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

