mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-22 12:39:55 +00:00
Replace "netif_default = NULL;" by "netif_set_default(NULL);" in netif_remove (do some processing, like for SNMP...)
This commit is contained in:
parent
d7cd90b5b8
commit
327f06bbaf
@ -202,7 +202,7 @@ void netif_remove(struct netif * netif)
|
|||||||
/* this netif is default? */
|
/* this netif is default? */
|
||||||
if (netif_default == netif)
|
if (netif_default == netif)
|
||||||
/* reset default netif */
|
/* reset default netif */
|
||||||
netif_default = NULL;
|
netif_set_default(NULL);
|
||||||
LWIP_DEBUGF( NETIF_DEBUG, ("netif_remove: removed netif\n") );
|
LWIP_DEBUGF( NETIF_DEBUG, ("netif_remove: removed netif\n") );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user