diff --git a/src/apps/snmp/snmp_core.c b/src/apps/snmp/snmp_core.c index 0f18e3c5..287fcf95 100644 --- a/src/apps/snmp/snmp_core.c +++ b/src/apps/snmp/snmp_core.c @@ -488,7 +488,10 @@ snmp_get_mib_from_oid(const u32_t *oid, u8_t oid_len) const struct snmp_mib* matched_mib = NULL; LWIP_ASSERT("'oid' param must not be NULL!", (oid != NULL)); - LWIP_ASSERT("'oid_len' param must be greater than 0!", (oid_len > 0)); + + if (oid_len == 0) { + return NULL; + } for (i=0; i 0)); + + if (oid_len == 0) { + return NULL; + } for (i=0; i