diff --git a/src/core/netif.c b/src/core/netif.c index 8330ad7b..49964513 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -909,6 +909,8 @@ netif_set_status_callback(struct netif *netif, netif_status_callback_fn status_c void netif_set_remove_callback(struct netif *netif, netif_status_callback_fn remove_callback) { + LWIP_ASSERT_CORE_LOCKED(); + if (netif) { netif->remove_callback = remove_callback; }