mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-04 02:39:15 +00:00
Accepting zero length identifiers e.g. for getnext operation. Uncommon but valid.
This commit is contained in:
parent
7d16087789
commit
f198b11f27
@ -470,10 +470,9 @@ snmp_asn1_dec_oid(struct pbuf *p, u16_t ofs, u16_t len, struct snmp_obj_id *oid)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* length == 0, zero length (empty list) isn't allowed here.
|
/* accepting zero length identifiers e.g. for
|
||||||
ISO 8825 (BER) isn't clear about this, but some seem to accept it (why?).
|
getnext operation. uncommon but valid */
|
||||||
zeroDotZero (0.0) must be at least 06 01 00 */
|
return ERR_OK;
|
||||||
return ERR_ARG;
|
|
||||||
}
|
}
|
||||||
len--;
|
len--;
|
||||||
if (len > 0)
|
if (len > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user