Subject: | bug with v0.13 |
Date: | Tue, 24 Feb 2015 21:49:07 +0000 |
To: | "bug-Net-SNMPTrapd [...] rt.cpan.org" <bug-Net-SNMPTrapd [...] rt.cpan.org> |
From: | "Wilson, Jonathan" <jonathan.wilson [...] Vanderbilt.Edu> |
Hello,
I encountered an uninitialized variable condition in SNMPTrapd.pm version 0.13, line 384 - it appears that the "version" method is being called before the version attribute has been set. This was seen on a CentOS 5 64bit system with 64bit Perl 5.20.1, compiled from source.
It results in warnings of the following form:
Use of uninitialized value in addition (+) at /usr/local/lib/perl5/site_perl/5.20.1/Net/SNMPTrapd.pm line 384.
I have attached a minimal program that demonstrates the issue, the output from "perl -V" and a one-line patch that fixes the problem.
Regards,
Jon Wilson
Jon Wilson | Sr. System Engineer | IT Service Management | Information Technology | Vanderbilt University
jonathan.wilson@vanderbilt.edu | phone 615.440-7895 | it.vanderbilt.edu<http://it.vanderbilt.edu/>
Message body not shown because it is not plain text.