From edf72a7dfbf11285ba804c26da0302fac22103d0 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 26 Aug 2008 19:57:20 +0000 Subject: [PATCH] fixed one small warning (compared u16_t to <= 0) --- src/core/snmp/msg_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/snmp/msg_in.c b/src/core/snmp/msg_in.c index bf2b1964..e2f177f3 100644 --- a/src/core/snmp/msg_in.c +++ b/src/core/snmp/msg_in.c @@ -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) */