If the indexing function did not return a new OID, make sure the
parsing function is forgotten as well.
/*
- * $Id: snmp_core.cc,v 1.50 2001/05/27 23:37:51 hno Exp $
+ * $Id: snmp_core.cc,v 1.51 2001/08/30 09:51:40 hno Exp $
*
* DEBUG: section 49 SNMP support
* AUTHOR: Glenn Chisholm
*NextLen = mibTreeEntry->len;
*Next = (*mibTreeEntry->instancefunction) (mibTreeEntry->name, NextLen, mibTreeEntry, &Fn);
}
- return (Fn);
+ if (*Next)
+ return (Fn);
+ else
+ return NULL;
}
static oid *