From: Maria Matejka Date: Tue, 2 Jun 2020 14:58:06 +0000 (+0200) Subject: OSPF: setting list node to zero before enlisting X-Git-Tag: v2.0.8~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eee8af4db2d36a5017eac4447075cac3346e8b23;p=thirdparty%2Fbird.git OSPF: setting list node to zero before enlisting --- diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c index 9198dd929..5318e50ca 100644 --- a/proto/ospf/lsack.c +++ b/proto/ospf/lsack.c @@ -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",