Hello,

I found a bug in snmp-bridge-mib that causes incorrect results
when the number of bridge ports exceeds one digit, because a
string compare is used on numeric data. The fix, tested, is below.
I hope this helps!

Best regards, and thanks to all the maintainers,
--
Charles Polisher

$ diff -u snmp-bridge-mib snmp-bridge-mib.fixed
--- snmp-bridge-mib     2016-02-27 08:24:22.000000000 -0800
+++ snmp-bridge-mib.ckp.fixed   2021-11-02 08:53:44.949074091 -0700
@@ -998,7 +998,7 @@

        opendir(DIR, $brifdir) or return -1;
        my @interfaces = readdir(DIR);
-       next if ($#interfaces lt 2);
+       next if ($#interfaces < 2);
        foreach my $if (@interfaces) {
                next if $if eq ".";
                next if  $if eq "..";



_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to