From 4619bbc3ea393b37264498ddeffc8021e8ca06c1 Mon Sep 17 00:00:00 2001 From: likewise Date: Mon, 25 Nov 2002 22:36:25 +0000 Subject: [PATCH] Changed dhcp_init() to NULL the client_list (on re-inits). --- src/core/dhcp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/dhcp.c b/src/core/dhcp.c index 099e8cc3..69f0f3ad 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -405,6 +405,10 @@ static void dhcp_handle_ack(struct dhcp_state *state) void dhcp_init(void) { DEBUGF(DHCP_DEBUG, ("dhcp_init()")); + /* this would be the proper way to stop all dhcp clients */ + /* but we need lwIP to be running at this point */ + /* while(client_list) dhcp_stop(client_list); */ + client_list = NULL; } /**