netif_add: zero-init netif->acd_list
This commit is contained in:
@@ -369,6 +369,9 @@ netif_add(struct netif *netif,
|
||||
netif->num = netif_num;
|
||||
netif->input = input;
|
||||
|
||||
#if LWIP_ACD
|
||||
netif->acd_list = NULL;
|
||||
#endif /* LWIP_ACD */
|
||||
NETIF_RESET_HINTS(netif);
|
||||
#if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS
|
||||
netif->loop_cnt_current = 0;
|
||||
|
||||
Reference in New Issue
Block a user