Hi,

I descovered an error in freshclam V0.85.
It is installed on an SuSE SLES 8 SP1, UL 1.0 SP3 box.
(Linux version 2.4.21-138-smp ([EMAIL PROTECTED]) (gcc version 3.2.2) #1 SMP Fri Oct 31 00:51:31 UTC 2003)


When I install from the sources and run "freshclam -v" the output stops after the main.cvd:

./freshclam -v
Current working dir is /usr/local/share/clamav
Max retries == 3
ClamAV update process started at Thu May 12 10:23:45 2005
SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
See the FAQ at http://www.clamav.net/faq.html for an explanation.
Querying current.cvd.clamav.net
TTL: 202
Software version from DNS: 0.85
main.cvd version from DNS: 31
main.cvd is up to date (version: 31, sigs: 33079, f-level: 4, builder: tkojm)



So I used my very little knowledge of c-programming and insertet a Debug-Line just to print "Start" at line 158:


---snip---

  memset(ipaddr, 0, sizeof(ipaddr));
  mprintf("## 1 ##\n");

if((ret = downloaddb(DB1NAME, "main.cvd", hostname, ipaddr, &signo, copt, dnsreply, localip)) > 50) {
---snap---


I made a make clean and a make inside the freshclam directory of the sources and suprisingly the output is fine again ...
"freshclam -v" prints now the following:


./freshclam -v
Current working dir is /usr/local/share/clamav
Max retries == 3
ClamAV update process started at Thu May 12 10:51:10 2005
SECURITY WARNING: NO SUPPORT FOR DIGITAL SIGNATURES
See the FAQ at http://www.clamav.net/faq.html for an explanation.
Querying current.cvd.clamav.net
TTL: 650
Software version from DNS: 0.85
Start
main.cvd version from DNS: 31
main.cvd is up to date (version: 31, sigs: 33079, f-level: 4, builder: tkojm)
daily.cvd version from DNS: 875
daily.cvd is up to date (version: 875, sigs: 1218, f-level: 4, builder: diego)
Freeing option list...done



I know that my added line has nothing to do with the whole functionality of the subroutine ... but it helps.
I think it is the real programmer's job to discover the real reason :-) .


Regards,

bk
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to