From 0caacf82b4a787f7811d94da924abd024c183fe1 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Wed, 11 Dec 2019 19:49:50 +0100 Subject: [PATCH] netif_add: zero-init netif->acd_list --- src/core/netif.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/netif.c b/src/core/netif.c index 460258a5..2dd53d23 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -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;