mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08: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…
x
Reference in New Issue
Block a user