Initialized netif->dhcp to NULL.

This commit is contained in:
likewise 2003-03-24 13:06:16 +00:00
parent 07058652c1
commit ce4dbcec6a

View File

@ -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"));
return NULL;
}
/* netif not under DHCP control by default */
netif->dhcp = NULL;
/* remember netif specific state information data */
netif->state = state;