mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
OSPF: setting list node to zero before enlisting
This commit is contained in:
@@ -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 */
|
/* Note that h_n is in network endianity */
|
||||||
struct lsa_node *no = mb_alloc(n->pool, sizeof(struct lsa_node));
|
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));
|
memcpy(&no->lsa, h_n, sizeof(struct ospf_lsa_header));
|
||||||
add_tail(&n->ackl[queue], NODE no);
|
add_tail(&n->ackl[queue], NODE no);
|
||||||
DBG("Adding %s ack for %R, ID: %R, RT: %R, Type: %u\n",
|
DBG("Adding %s ack for %R, ID: %R, RT: %R, Type: %u\n",
|
||||||
|
Reference in New Issue
Block a user