Minor (null-pointer check for not-on-list-netif)

This commit is contained in:
goldsimon 2009-12-01 19:59:36 +00:00
parent b900253c09
commit 46dc1c9bfb

View File

@ -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++;