Subject: | Uninitialized warning in Mail::DomainKeys::Key::Public |
Date: | Thu, 22 Mar 2007 16:02:08 +0200 |
To: | bug-Mail-DomainKeys [...] rt.cpan.org |
From: | Tuomas Jormola <tj [...] solitudo.net> |
Hi,
I get this kinds of syslog messages when running Mail::DomainKeys plugin with Spamassassin:
Mar 22 03:21:49 kgb spamd[25632]: Use of uninitialized value in string eq at /opt/local/lib/perl5/site_perl/5.8.8/Mail/DomainKeys/Key/Public.pm line 67, <GEN900> line 76.
Mar 22 03:21:51 kgb spamd[26951]: Use of uninitialized value in string eq at /opt/local/lib/perl5/site_perl/5.8.8/Mail/DomainKeys/Key/Public.pm line 67, <GEN846> line 76.
I guess replacing the line 67
($prms{'Protocol'} eq "dns") or
with
(exists $prms{'Protocol'} && $prms{'Protocol'} eq "dns") or
would do the trick.
Regards,
--
Tuomas Jormola <tj@solitudo.net>