mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 22:56:00 +00:00
Minor (null-pointer check for not-on-list-netif)
This commit is contained in:
parent
b900253c09
commit
46dc1c9bfb
|
@ -118,7 +118,7 @@ snmp_netiftoifindex(struct netif *netif, s32_t *ifidx)
|
||||||
u16_t i;
|
u16_t i;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (nif != netif)
|
while ((nif != NULL) && (nif != netif))
|
||||||
{
|
{
|
||||||
nif = nif->next;
|
nif = nif->next;
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user