From clamav-users-bounces@lists.clamav.net  Mon Jul 14 21:57:29 2008
Return-Path: <clamav-users-bounces@lists.clamav.net>
X-Original-To: list@tad.clamav.net
Delivered-To: list@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id a1FoByso1Vqb; Mon, 14 Jul 2008 21:57:29 +0200 (CEST)
Received: from tad.clamav.net (localhost.localdomain [127.0.0.1])
	by tad.clamav.net (Postfix) with ESMTP id DA75F51417E;
	Mon, 14 Jul 2008 21:57:24 +0200 (CEST)
X-Original-To: clamav-users@tad.clamav.net
Delivered-To: clamav-users@tad.clamav.net
X-Virus-Scanned: Debian amavisd-new at tad.clamav.net
Received: from tad.clamav.net ([127.0.0.1])
	by localhost (tad.clamav.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ScjKH-MaMEnm for <clamav-users@tad.clamav.net>;
	Mon, 14 Jul 2008 21:57:19 +0200 (CEST)
Received: from beta.intcomgrp.com (unknown [216.54.13.120])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by tad.clamav.net (Postfix) with ESMTP id B46EE514045
	for <clamav-users@lists.clamav.net>;
	Mon, 14 Jul 2008 21:57:18 +0200 (CEST)
Received: from [192.168.100.183] (dhcp183.support.intcomgrp.com
	[192.168.100.183])
	by beta.intcomgrp.com (8.14.3/8.14.3) with ESMTP id m6EJvJld030481
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <clamav-users@lists.clamav.net>; Mon, 14 Jul 2008 15:57:19 -0400
Message-ID: <487BAFA3.2040303@beta.intcomgrp.com>
Date: Mon, 14 Jul 2008 15:57:23 -0400
From: James Kosin <jkosin@beta.intcomgrp.com>
Organization: International Communications Group, Inc.
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
To: ClamAV users ML <clamav-users@lists.clamav.net>
References: <20080714184548.B0BB6BE4078@ws1-9.us4.outblaze.com>
In-Reply-To: <20080714184548.B0BB6BE4078@ws1-9.us4.outblaze.com>
X-Enigmail-Version: 0.95.6
OpenPGP: id=7BB59129
X-Virus-Scanned: ClamAV 0.93.3/7709/Mon Jul 14 12:16:52 2008 on
	beta.intcomgrp.com
X-Virus-Status: Clean
Subject: Re: [Clamav-users] Database correctly reloaded (0 signatures)
X-BeenThere: clamav-users@lists.clamav.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: ClamAV users ML <clamav-users@lists.clamav.net>
List-Id: ClamAV users ML <clamav-users.lists.clamav.net>
List-Unsubscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users>,
	<mailto:clamav-users-request@lists.clamav.net?subject=unsubscribe>
List-Post: <mailto:clamav-users@lists.clamav.net>
List-Help: <mailto:clamav-users-request@lists.clamav.net?subject=help>
List-Subscribe: <http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users>,
	<mailto:clamav-users-request@lists.clamav.net?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0840568934=="
Mime-version: 1.0
Sender: clamav-users-bounces@lists.clamav.net
Errors-To: clamav-users-bounces@lists.clamav.net

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============0840568934==
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="------------enigD92C4F043798B5109C138EEC"

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigD92C4F043798B5109C138EEC
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Oscar Usifer wrote:
> Please see clamav-0.93.3/libclamav/readdb.c:460 sigs++;
>=20
>>From static int cli_loaddb() :
>=20
> 475 if(signo)
> 476  *signo +=3D sigs;
>=20
> s/b
>=20
> 475 if (sigs =3D=3D 0)
> 476   return CL_EMALFDB;
> 477
> 478 if(signo)
> 479  *signo +=3D sigs;
>=20
>=20
Oscar,

I don't know if this is really necessary.  A malformed DB file should be =

caught by other checks above this.  One could potentially have a DB file =

with no signatures... could be a possibility.  ie: main.cld is updated=20
and daily.cld gets signatures cleared but no update yet.

The user was experiencing a total signature count of zero.  So a check=20
after loading all db files for a total count that is above 0 may be in=20
order.

James


--------------enigD92C4F043798B5109C138EEC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkh7r6cACgkQkNLDmnu1kSkk/gCaA/LQdZdM1onYGIfmgVeQDynA
qD8An2uXc4vh/UyMm9LIsaPDJwa1hyQ3
=XykV
-----END PGP SIGNATURE-----

--------------enigD92C4F043798B5109C138EEC--

--===============0840568934==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
--===============0840568934==--

