netif_add: zero-init netif->acd_list

This commit is contained in:
Simon Goldschmidt 2019-12-11 19:49:50 +01:00
parent e0be5a7f6d
commit 0caacf82b4

View File

@ -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;