Fix SNMPv1 partial table fetches, bug introduced by patch to enable single instance partial table fetches.

This commit is contained in:
Eric Miller
2006-08-22 01:42:56 +00:00
parent c10bf98500
commit c130b9a49e

View File

@@ -2543,8 +2543,8 @@ sub _load_attr {
# long enough; implementing that would require a
# lot of MIB mucking.
my $try = $sess->get($var);
$errornum = $sess->{ErrorNum};
if (defined($try) && $errornum == 0 && $try !~ /^NOSUCH/) {
my $errorno = $sess->{ErrorNum};
if (defined($try) && $errorno == 0 && $try !~ /^NOSUCH/) {
$var->[2] = $try;
$vars = [ $var ];
$bulkwalk = 1; # fake a bulkwalk return