Subject: | Last oid doesn't appear in find_next_oid() |
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