0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

OSPF: setting list node to zero before enlisting

This commit is contained in:
Maria Matejka 2020-06-02 16:58:06 +02:00
parent 4e8f8afc68
commit eee8af4db2

View 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",