Skip to content
Snippets Groups Projects
Commit ceef6de4 authored by Maria Matejka's avatar Maria Matejka
Browse files

OSPF: Setting a list node NULL before use

parent 923a6644
No related branches found
No related tags found
No related merge requests found
......@@ -522,7 +522,10 @@ static inline void
add_nbma_node(struct ospf_iface *ifa, struct nbma_node *src, int found)
{
struct nbma_node *n = mb_alloc(ifa->pool, sizeof(struct nbma_node));
n->n = (node) {};
add_tail(&ifa->nbma_list, NODE n);
n->ip = src->ip;
n->eligible = src->eligible;
n->found = found;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment