From 327f06bbaf578362b2c094fd6f16aabc239129a2 Mon Sep 17 00:00:00 2001 From: fbernon Date: Mon, 3 Sep 2007 12:22:00 +0000 Subject: [PATCH] Replace "netif_default = NULL;" by "netif_set_default(NULL);" in netif_remove (do some processing, like for SNMP...) --- src/core/netif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/netif.c b/src/core/netif.c index d6071cd1..cce793b0 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -202,7 +202,7 @@ void netif_remove(struct netif * netif) /* this netif is default? */ if (netif_default == netif) /* reset default netif */ - netif_default = NULL; + netif_set_default(NULL); LWIP_DEBUGF( NETIF_DEBUG, ("netif_remove: removed netif\n") ); }