From ce4dbcec6a1d7ad75d1e63efefe211acb0171f6d Mon Sep 17 00:00:00 2001 From: likewise Date: Mon, 24 Mar 2003 13:06:16 +0000 Subject: [PATCH] Initialized netif->dhcp to NULL. --- src/core/netif.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/netif.c b/src/core/netif.c index 8712cef7..8544d744 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -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;