mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-09 13:13:22 +00:00
fixed one small warning (compared u16_t to <= 0)
This commit is contained in:
parent
ba636e19a2
commit
edf72a7dfb
@ -1145,7 +1145,7 @@ snmp_pdu_dec_varbindlist(struct pbuf *p, u16_t ofs, u16_t *ofs_ret, struct snmp_
|
||||
derr = snmp_asn1_dec_length(p, ofs+1, &len_octets, &len);
|
||||
if ((derr != ERR_OK) ||
|
||||
(type != (SNMP_ASN1_UNIV | SNMP_ASN1_CONSTR | SNMP_ASN1_SEQ)) ||
|
||||
(len <= 0) || (len > vb_len))
|
||||
(len == 0) || (len > vb_len))
|
||||
{
|
||||
snmp_inc_snmpinasnparseerrs();
|
||||
/* free varbinds (if available) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user