From ceef6de459b25d8fcc5dd416e0cecf179bd243e7 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 27 May 2021 10:35:38 +0200 Subject: [PATCH] OSPF: Setting a list node NULL before use --- proto/ospf/iface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index f38b8210..4cd45033 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -522,7 +522,10 @@ static inline void add_nbma_node(struct ospf_iface *ifa, struct nbma_node *src, int found) { struct nbma_node *n = mb_alloc(ifa->pool, sizeof(struct nbma_node)); + + n->n = (node) {}; add_tail(&ifa->nbma_list, NODE n); + n->ip = src->ip; n->eligible = src->eligible; n->found = found;