Off by one in counting the number of MIB entries.

This commit is contained in:
Duncan Barclay 2001-05-03 20:58:22 +00:00
parent 9c6a0f184b
commit a57f440cf5

View File

@ -183,7 +183,7 @@ ray_dumpinfo(char *iface)
printf("%-26s\t", mib_strings[RAY_MIB_VERSION]);
printf("%d\n", 3+version);
for (mib = RAY_MIB_NET_TYPE; mib < RAY_MIB_MAX; mib++) {
for (mib = RAY_MIB_NET_TYPE; mib <= RAY_MIB_MAX; mib++) {
if ((mib_info[mib][0] & version) == 0)
continue;