mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Initialized netif->dhcp to NULL.
This commit is contained in:
parent
07058652c1
commit
ce4dbcec6a
@ -68,6 +68,9 @@ netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask,
|
|||||||
DEBUGF(NETIF_DEBUG, ("netif_add(): out of memory for netif\n"));
|
DEBUGF(NETIF_DEBUG, ("netif_add(): out of memory for netif\n"));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* netif not under DHCP control by default */
|
||||||
|
netif->dhcp = NULL;
|
||||||
|
|
||||||
/* remember netif specific state information data */
|
/* remember netif specific state information data */
|
||||||
netif->state = state;
|
netif->state = state;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user