]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: Setting a list node NULL before use
authorMaria Matejka <mq@ucw.cz>
Thu, 27 May 2021 08:35:38 +0000 (10:35 +0200)
committerMaria Matejka <mq@ucw.cz>
Fri, 10 Sep 2021 15:38:22 +0000 (17:38 +0200)
proto/ospf/iface.c

index f38b8210c0b87f70be99181790d6a75dbbaf0b71..4cd4503318ec1f96bcd6a7ae5735c18bae9f1f84 100644 (file)
@@ -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;