mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 23:25:58 +00:00
snmp: Fix snmp_oid_to_ip for IPADDR_ANY_TYPE ips
This commit is contained in:
parent
15925b66c6
commit
814577fcc6
@ -282,7 +282,7 @@ snmp_oid_to_ip(const u32_t *oid, u8_t oid_len, ip_addr_t *ip)
|
||||
memset(ip, 0, sizeof(*ip));
|
||||
IP_SET_TYPE(ip, IPADDR_TYPE_ANY);
|
||||
|
||||
return 0;
|
||||
return 2;
|
||||
} else if (oid[0] == 1) { /* ipv4 */
|
||||
#if LWIP_IPV4
|
||||
/* 1x InetAddressType, 1x OID len, 4x InetAddressIPv4 */
|
||||
|
Loading…
Reference in New Issue
Block a user