mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
fixed bug #40050 SNMP problem with MIB arrays > 255
This commit is contained in:
parent
a58083b11e
commit
c1dc1a20d6
@ -96,6 +96,9 @@ HISTORY
|
||||
|
||||
++ Bugfixes:
|
||||
|
||||
2014-02-20: Simon Goldschmidt
|
||||
* mib_structs.c: fixed bug #40050 SNMP problem with MIB arrays > 255
|
||||
|
||||
2014-02-20: Simon Goldschmidt
|
||||
* api.h, sockets.c: fixed bug #41499 netconn::recv_avail can overflow
|
||||
|
||||
|
@ -737,13 +737,13 @@ snmp_expand_tree(struct mib_node *node, u8_t ident_len, s32_t *ident, struct snm
|
||||
}
|
||||
else
|
||||
{
|
||||
u8_t j;
|
||||
u16_t j;
|
||||
struct nse cur_node;
|
||||
|
||||
LWIP_DEBUGF(SNMP_MIB_DEBUG,("non-leaf node\n"));
|
||||
/* non-leaf, store right child ptr and id */
|
||||
LWIP_ASSERT("i < 0xff", i < 0xff);
|
||||
j = (u8_t)i + 1;
|
||||
j = i + 1;
|
||||
while ((j < an->maxlength) && (empty_table(an->nptr[j])))
|
||||
{
|
||||
j++;
|
||||
@ -781,7 +781,7 @@ snmp_expand_tree(struct mib_node *node, u8_t ident_len, s32_t *ident, struct snm
|
||||
}
|
||||
else
|
||||
{
|
||||
u8_t j;
|
||||
u16_t j;
|
||||
/* ident_len == 0, complete with leftmost '.thing' */
|
||||
j = 0;
|
||||
while ((j < an->maxlength) && empty_table(an->nptr[j]))
|
||||
@ -980,13 +980,13 @@ snmp_expand_tree(struct mib_node *node, u8_t ident_len, s32_t *ident, struct snm
|
||||
}
|
||||
else
|
||||
{
|
||||
u8_t j;
|
||||
u16_t j;
|
||||
struct nse cur_node;
|
||||
|
||||
LWIP_DEBUGF(SNMP_MIB_DEBUG,("non-leaf node\n"));
|
||||
/* non-leaf, store right child ptr and id */
|
||||
LWIP_ASSERT("i < 0xff", i < 0xff);
|
||||
j = (u8_t)i + 1;
|
||||
j = i + 1;
|
||||
if (j < len)
|
||||
{
|
||||
/* right node is the current external node */
|
||||
|
Loading…
Reference in New Issue
Block a user