Hi,
this bug is still in version 2.67 :
From: vipul Subject: RE: [Razor-users] razor-agents bug ? Date: Thu, 26 Aug 2004 19:37:07 -0700 Interesting. I'll look into this and fix in the next release. Would you open a bug on sourceforge for this?
Cheers, vipul
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lionel Bouton Sent: Friday, August 06, 2004 7:44 AM To: [EMAIL PROTECTED] Cc: Administrateurs IES Subject: [Razor-users] razor-agents bug ?
Hi,
I discovered today that we had a problem here with spamassassin 2.63 and 2.64 using razor-agents 2.61 :
Aug 6 16:28:05 ns02 spamd[26947]: razor2 check skipped: No such file or directory Can't locate auto/Digest/SHA1/reset.al in @INC (@INC contains:
lib ../lib /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Razor2/Signature/ Whiplash.pm line 66
This didn't occur on each message processing. Sometimes spamd could process the message without razor-agents complaining.
After looking into Digest::SHA1 and Whiplash.pm I noticed that Whiplash.pm called reset on a Digest::SHA1 object although it just called the hexdigest method which already resets the object upon completion. It seems calling reset after digest or hexdigest is not only a waste of time, but also the source of the problem.
After commenting out the reset in Whiplash.pm (line 66) :
my $sha1 = Digest::SHA1->new(); $sha1->add($host); $sig = substr $sha1->hexdigest, 0, 12;
-> #$sha1 = Digest::SHA1->reset(); $sha1->add($corrected_length); $sig .= substr $sha1->hexdigest, 0, 4;
push @sigs, $sig; $sig_meta{$sig} = [$host, $corrected_length];
everything is working fine here.
As I didn't found anything related to this, I post the problem and what I hope is the correct solution here,
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users