]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
OSPF: setting list node to zero before enlisting
authorMaria Matejka <mq@ucw.cz>
Tue, 2 Jun 2020 14:58:06 +0000 (16:58 +0200)
committerMaria Matejka <mq@ucw.cz>
Tue, 2 Jun 2020 14:58:06 +0000 (16:58 +0200)
proto/ospf/lsack.c

index 9198dd9296cd2f3ef6a126ab43cc58256b30f199..5318e50cad6845f6f9c15222f6c064077f4f61ae 100644 (file)
@@ -59,6 +59,7 @@ ospf_enqueue_lsack(struct ospf_neighbor *n, struct ospf_lsa_header *h_n, int que
 {
   /* Note that h_n is in network endianity */
   struct lsa_node *no = mb_alloc(n->pool, sizeof(struct lsa_node));
+  no->n = (node) {};
   memcpy(&no->lsa, h_n, sizeof(struct ospf_lsa_header));
   add_tail(&n->ackl[queue], NODE no);
   DBG("Adding %s ack for %R, ID: %R, RT: %R, Type: %u\n",