Skip Menu |
 

This queue is for tickets about the SNMP-ToolBox CPAN distribution.

Report information
The Basics
Id: 72015
Status: resolved
Priority: 0/
Queue: SNMP-ToolBox

People
Owner: Nobody in particular
Requestors: pascal [...] beringuie.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: 0.03



Subject: Last oid doesn't appear in find_next_oid()
Download (untitled) / with headers
text/plain 501b
Hi Sebastien It seems there is an error in sub find_next_oid() of snmp toolbox module. The last oid never appears in the walk. A line 83 of SNMP/ToolBox.pm I have replaced line my $next_oid = (defined $next_oid_idx and $next_oid_idx < $#{$oid_list}) ? $oid_list->[$next_oid_idx] : "NONE"; by my $next_oid = (defined $next_oid_idx and $next_oid_idx <= $#{$oid_list}) ? $oid_list->[$next_oid_idx] : "NONE"; Best regards. Pascal
Subject: Re: [rt.cpan.org #72015] Last oid doesn't appear in find_next_oid()
Date: Wed, 14 Nov 2012 23:14:29 +0100
To: bug-SNMP-ToolBox [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Download (untitled) / with headers
text/plain 674b
Pascal Béringuié wrote via RT: Show quoted text
> Hi Sebastien
Hello Pascal, Show quoted text
> It seems there is an error in sub find_next_oid() of snmp toolbox module. > The last oid never appears in the walk. > A line 83 of SNMP/ToolBox.pm I have replaced line > > my $next_oid = (defined $next_oid_idx and $next_oid_idx < $#{$oid_list}) > ? $oid_list->[$next_oid_idx] > : "NONE"; > > by > > my $next_oid = (defined $next_oid_idx and $next_oid_idx <= $#{$oid_list}) > ? $oid_list->[$next_oid_idx] > : "NONE";
Thanks, applied. This fix is included in release 0.03. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.