OSPF: setting list node to zero before enlisting
This commit is contained in:
parent
4e8f8afc68
commit
eee8af4db2
1 changed files with 1 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue