mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-02 14:58:22 +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;
|
||||
|
||||
i = 0;
|
||||
while (nif != netif)
|
||||
while ((nif != NULL) && (nif != netif))
|
||||
{
|
||||
nif = nif->next;
|
||||
i++;
|
||||
|
Loading…
Reference in New Issue
Block a user