summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2020-06-02 16:58:06 +0200
committerMaria Matejka <mq@ucw.cz>2020-06-02 16:58:06 +0200
commiteee8af4db2d36a5017eac4447075cac3346e8b23 (patch)
tree9b6feb073244cddcc39065446b8f4945e64be70e
parent4e8f8afc68cc7ba09ca42d989e47dbfcb17d2772 (diff)
OSPF: setting list node to zero before enlisting
-rw-r--r--proto/ospf/lsack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/ospf/lsack.c b/proto/ospf/lsack.c
index 9198dd92..5318e50c 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",