From: Maria Matejka Date: Thu, 27 May 2021 08:35:38 +0000 (+0200) Subject: OSPF: Setting a list node NULL before use X-Git-Tag: 3.0-alpha0~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ceef6de459b25d8fcc5dd416e0cecf179bd243e7;p=thirdparty%2Fbird.git OSPF: Setting a list node NULL before use --- diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index f38b8210c..4cd450331 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;